mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.4 KiB
JSON
287 lines
8.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-for-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x in y' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "0b01d67ef284fda148af703901faaa50ed4c1c3c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8cf9a316f238b0073c8785a074e9598983370688"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-for-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i in [1,2,3]' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x in y' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "8cf9a316f238b0073c8785a074e9598983370688",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "924fd9864381cc34a91092f0ba0c87a66dfb0ca4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-for-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'i in [1,2,3]' for statement with the 'x in y' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "924fd9864381cc34a91092f0ba0c87a66dfb0ca4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "0d39fcada7bb5a3ea1e350b2ea0ad6ec9c94ace4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-for-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x in y' for statement with the 'i in [1,2,3]' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "0d39fcada7bb5a3ea1e350b2ea0ad6ec9c94ace4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a0e15a0d32c663b2ddd0de0d3dec76c267cd7843"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-for-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i in [1,2,3]' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x in y' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i in [1,2,3]' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "a0e15a0d32c663b2ddd0de0d3dec76c267cd7843",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "89c117061aec966ec842b47479982c91d0e5804a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-for-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x in y' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "89c117061aec966ec842b47479982c91d0e5804a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "67f3cb1fa3c8738905f00ccf3c301e5a76d3dd62"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-for-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i in [1,2,3]' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for.rb"
|
|
],
|
|
"sha1": "67f3cb1fa3c8738905f00ccf3c301e5a76d3dd62",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c6c51eb821af9e06c0df5a4962ab8c9d21524099"
|
|
}]
|