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": "08051cbb73e41f623b319d51e6dbf50cd45c359a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "dc1e7651a263e1a807dd1b487933508b4a228f78"
|
|
}
|
|
,{
|
|
"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": "dc1e7651a263e1a807dd1b487933508b4a228f78",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5b336f80d6953e6f354e5b08f987ed39d36ea7bc"
|
|
}
|
|
,{
|
|
"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": "5b336f80d6953e6f354e5b08f987ed39d36ea7bc",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9ddb9a1c70df3fe153288b36f26c58482c834248"
|
|
}
|
|
,{
|
|
"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": "9ddb9a1c70df3fe153288b36f26c58482c834248",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "35c13d227cf921ded9a94f89c6013a0b120b7fb6"
|
|
}
|
|
,{
|
|
"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": "35c13d227cf921ded9a94f89c6013a0b120b7fb6",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a636a0bbeed80e22151e654c7a70b4bce6f4e86d"
|
|
}
|
|
,{
|
|
"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": "a636a0bbeed80e22151e654c7a70b4bce6f4e86d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c4e12c4b1612bd401dbf5b6bc7ba78bf3aeae4c7"
|
|
}
|
|
,{
|
|
"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": "c4e12c4b1612bd401dbf5b6bc7ba78bf3aeae4c7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b22ab90f31f999ae10698ac13fb7826d9c012afd"
|
|
}]
|