mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
443 lines
14 KiB
JSON
443 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-multiple-assignments-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x(…, y, z, 20, 30)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "4b0947a8e2e4b499afa4bb5c101a7650e5908ec7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a85dc2dbdafa18fde4d43ec5798891a1b841879e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x(…, 40)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x(…, y, z, 20, 30)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "a85dc2dbdafa18fde4d43ec5798891a1b841879e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c9d4d5fbb0d72ac11c9f984986f6c37eef7af6b2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' identifier in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the ', y = aVariable' at line 1, column 2 - line 1, column 17 with the 'z' assignment in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '20' in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '40' with '30' in the function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ',' at line 1, column 2 - line 1, column 3 in the function call"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "c9d4d5fbb0d72ac11c9f984986f6c37eef7af6b2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6844caf03d01055ec6286d5b90709a12032be7a0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '40' in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' identifier in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'z' assignment in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '20' in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '30' in the function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the ', y = aVariable' at line 1, column 2 - line 1, column 17 in the function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ',' at line 1, column 2 - line 1, column 3 in the function call"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "6844caf03d01055ec6286d5b90709a12032be7a0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "81623fb732ff48e76cde32acaba5edeac71d255c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x(…, 40)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x(…, y, z, 20, 30)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x(…, 40)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "81623fb732ff48e76cde32acaba5edeac71d255c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cefbd8d0a3263d4f5473ba8a1f3db40fef483600"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x(…, y, z, 20, 30)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "cefbd8d0a3263d4f5473ba8a1f3db40fef483600",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d89cd59099033e41fed0e6b57e48fb54cbaca833"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x(…, 40)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "d89cd59099033e41fed0e6b57e48fb54cbaca833",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ac466f9d7cceaf9d88c8a09227be9b217a9b2155"
|
|
}]
|