1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/assignment.json
2016-10-27 08:30:34 -07:00

287 lines
8.4 KiB
JSON

[{
"testCaseDescription": "ruby-assignment-insert-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "d612f3b2c22e3a61996c95475ee4068b6788aac6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1c9ae0a1906bf64ff71afd113ca4b63449b694dc"
}
,{
"testCaseDescription": "ruby-assignment-replacement-insert-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Added the 'x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "1c9ae0a1906bf64ff71afd113ca4b63449b694dc",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a42f059390957aff1b99047711b88dfaf41d7f40"
}
,{
"testCaseDescription": "ruby-assignment-delete-insert-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '1' with '0' in an assignment to x"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "a42f059390957aff1b99047711b88dfaf41d7f40",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0a1376f3909ca1fee6d863e5c11e23237023288c"
}
,{
"testCaseDescription": "ruby-assignment-replacement-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"replace": [
{
"start": [
1,
5
],
"end": [
1,
6
]
},
{
"start": [
1,
5
],
"end": [
1,
6
]
}
]
},
"summary": "Replaced '0' with '1' in an assignment to x"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "0a1376f3909ca1fee6d863e5c11e23237023288c",
"gitDir": "test/corpus/repos/ruby",
"sha2": "81d8d02f30b5c8c7ebc07a57259eca99e9a52b23"
}
,{
"testCaseDescription": "ruby-assignment-delete-replacement-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Deleted the 'x' assignment"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
6
]
}
},
"summary": "Added the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "81d8d02f30b5c8c7ebc07a57259eca99e9a52b23",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8fd44a38d6ede818dddde32c6c7f2cc67074875e"
}
,{
"testCaseDescription": "ruby-assignment-delete-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "8fd44a38d6ede818dddde32c6c7f2cc67074875e",
"gitDir": "test/corpus/repos/ruby",
"sha2": "02fe21e43bf1542b24bce5a063343b8cb04a5585"
}
,{
"testCaseDescription": "ruby-assignment-delete-rest-test",
"expectedResult": {
"changes": {
"assignment.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
6
]
}
},
"summary": "Deleted the 'x' assignment"
}
]
},
"errors": {}
},
"filePaths": [
"assignment.rb"
],
"sha1": "02fe21e43bf1542b24bce5a063343b8cb04a5585",
"gitDir": "test/corpus/repos/ruby",
"sha2": "838fb5d4658ff8ce58bc93c219ff0892e8e336ec"
}]