mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
263 lines
7.4 KiB
JSON
263 lines
7.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "264e8a80aee14d0effd8b560eba0b756fc977f49",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f94104abf315362c00c98ec8983bc10c015f423e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "f94104abf315362c00c98ec8983bc10c015f423e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "416c6e8a826c994180e96da45cfc165a9ad39998"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar()' function call in an else block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "416c6e8a826c994180e96da45cfc165a9ad39998",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1309e64764df58212ef4e2ae14dd40b6e213ad6e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
3
|
|
],
|
|
"end": [
|
|
4,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar()' function call in an else block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "1309e64764df58212ef4e2ae14dd40b6e213ad6e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "57b4e2e412d9b1fdd7b78db5fadcac2264d0a8f1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "57b4e2e412d9b1fdd7b78db5fadcac2264d0a8f1",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "bdfec68ee7acf98cfa10de9f46bcf3891f030f66"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "bdfec68ee7acf98cfa10de9f46bcf3891f030f66",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "24bbe6d5af40f9c36cdb928aeaa925da59b6a498"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted a begin statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"else.rb"
|
|
],
|
|
"sha1": "24bbe6d5af40f9c36cdb928aeaa925da59b6a498",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "47b6616835e1b178e9cd9191c1259fcfcbb7aab3"
|
|
}]
|