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": "65cdd278c64ea23aacd3c8cf11e6f52864fa66ff",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9f2f6fc575ac8807150427ba4da1f8de11e74648"
|
|
}
|
|
,{
|
|
"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": "9f2f6fc575ac8807150427ba4da1f8de11e74648",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e6d87164c6073959e327ce3e3552bb0215c65d18"
|
|
}
|
|
,{
|
|
"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 x(…, y, z, 20, 30) 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 x(…, y, z, 20, 30) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '20' in the x(…, y, z, 20, 30) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '40' with '30' in the x(…, y, z, 20, 30) 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 x(…, y, z, 20, 30) function call"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "e6d87164c6073959e327ce3e3552bb0215c65d18",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "75c863e1f261a3fbb80129fd923b041ddf5d36f4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-multiple-assignments-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"multiple-assignments.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '40' in the x(…, 40) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' identifier in the x(…, 40) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'z' assignment in the x(…, 40) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
15
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '20' in the x(…, 40) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
19
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '30' in the x(…, 40) 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 x(…, 40) function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
3
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the ',' at line 1, column 2 - line 1, column 3 in the x(…, 40) function call"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"filePaths": [
|
|
"multiple-assignments.rb"
|
|
],
|
|
"sha1": "75c863e1f261a3fbb80129fd923b041ddf5d36f4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1b8b525816da68c9b71590d195910c907ec07491"
|
|
}
|
|
,{
|
|
"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": "1b8b525816da68c9b71590d195910c907ec07491",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7b56b3f5cc93525db8296697cf4172342acf9808"
|
|
}
|
|
,{
|
|
"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": "7b56b3f5cc93525db8296697cf4172342acf9808",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "87e60bd80ad17dec9827433189e28c6b26e84d90"
|
|
}
|
|
,{
|
|
"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": "87e60bd80ad17dec9827433189e28c6b26e84d90",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "99cb54a96833cce9f6add73f966884f7b735594e"
|
|
}]
|