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": "11c1f670003a6d95a99b37f02ad9c5628e60c3cd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4cdb7c74cf51031620d90781a3fa2e806d82dcd3"
|
|
}
|
|
,{
|
|
"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": "4cdb7c74cf51031620d90781a3fa2e806d82dcd3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "17e1ea04b22d68a01e3d5fdf82e072ec4f1931be"
|
|
}
|
|
,{
|
|
"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": "17e1ea04b22d68a01e3d5fdf82e072ec4f1931be",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "281d83003bf56b54afdb80a361ed037a9697929b"
|
|
}
|
|
,{
|
|
"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": "281d83003bf56b54afdb80a361ed037a9697929b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "de3fea29885e59d72365364319ff86ae53d56bfc"
|
|
}
|
|
,{
|
|
"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": "de3fea29885e59d72365364319ff86ae53d56bfc",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "bd869c38211dbfc3a4a60c3540c6f51d161e32ad"
|
|
}
|
|
,{
|
|
"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": "bd869c38211dbfc3a4a60c3540c6f51d161e32ad",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "41027fb036f9dae593152c10c224c0cdc80763f1"
|
|
}
|
|
,{
|
|
"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": "41027fb036f9dae593152c10c224c0cdc80763f1",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a61d0fc144c41fdbac85a0a3f7972d0a414282b5"
|
|
}]
|