1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/ruby/multiple-assignments.json

443 lines
14 KiB
JSON
Raw Normal View History

2016-10-22 01:52:40 +03:00
[{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-insert-test",
2016-10-22 01:52:40 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
2016-10-22 01:52:40 +03:00
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2016-10-24 20:43:31 +03:00
1,
21
2016-10-22 01:52:40 +03:00
]
}
},
"summary": "Added the 'x(…, y, z, 20, 30)' function call"
2016-10-22 01:52:40 +03:00
}
]
},
"errors": {}
2016-10-22 01:52:40 +03:00
},
"filePaths": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
2016-10-22 01:52:40 +03:00
],
"sha1": "65cdd278c64ea23aacd3c8cf11e6f52864fa66ff",
2016-10-22 01:52:40 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "9f2f6fc575ac8807150427ba4da1f8de11e74648"
2016-10-22 01:52:40 +03:00
}
,{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-replacement-insert-test",
2016-10-22 01:52:40 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
2016-10-22 01:52:40 +03:00
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
2016-10-22 01:52:40 +03:00
]
}
},
"summary": "Added the 'x(…, 40)' function call"
2016-10-22 01:52:40 +03:00
},
{
"span": {
"insert": {
2016-10-22 01:52:40 +03:00
"start": [
2,
2016-10-22 01:52:40 +03:00
1
],
"end": [
2,
2016-10-24 20:43:31 +03:00
21
2016-10-22 01:52:40 +03:00
]
}
},
"summary": "Added the 'x(…, y, z, 20, 30)' function call"
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
],
"sha1": "9f2f6fc575ac8807150427ba4da1f8de11e74648",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e6d87164c6073959e327ce3e3552bb0215c65d18"
}
,{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-delete-insert-test",
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"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,
2016-10-31 23:14:58 +03:00
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"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
2016-10-22 01:52:40 +03:00
{
"span": {
"insert": {
"start": [
2016-10-24 20:43:31 +03:00
1,
2
2016-10-22 01:52:40 +03:00
],
"end": [
1,
3
2016-10-22 01:52:40 +03:00
]
}
},
"summary": "Added the ',' at line 1, column 2 - line 1, column 3 in the x(…, y, z, 20, 30) function call"
2016-10-22 01:52:40 +03:00
}
]
}
},
"filePaths": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
2016-10-22 01:52:40 +03:00
],
"sha1": "e6d87164c6073959e327ce3e3552bb0215c65d18",
2016-10-22 01:52:40 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "75c863e1f261a3fbb80129fd923b041ddf5d36f4"
}
,{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-replacement-test",
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"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": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
2
],
"end": [
1,
2016-10-31 23:14:58 +03:00
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": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
],
"sha1": "75c863e1f261a3fbb80129fd923b041ddf5d36f4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "1b8b525816da68c9b71590d195910c907ec07491"
}
,{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-delete-replacement-test",
2016-10-22 01:52:40 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
1,
1
2016-10-24 20:43:31 +03:00
],
"end": [
1,
21
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x(…, 40)' function call"
2016-10-24 20:43:31 +03:00
},
2016-10-22 01:52:40 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
2,
1
2016-10-24 20:43:31 +03:00
],
"end": [
2,
21
2016-10-24 20:43:31 +03:00
]
}
},
"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"
2016-10-22 01:52:40 +03:00
}
]
},
"errors": {}
},
"filePaths": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
],
"sha1": "1b8b525816da68c9b71590d195910c907ec07491",
"gitDir": "test/corpus/repos/ruby",
"sha2": "7b56b3f5cc93525db8296697cf4172342acf9808"
}
,{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-delete-test",
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
2016-10-24 20:43:31 +03:00
{
"span": {
"delete": {
2016-10-24 20:43:31 +03:00
"start": [
1,
1
2016-10-24 20:43:31 +03:00
],
"end": [
1,
21
2016-10-24 20:43:31 +03:00
]
}
},
"summary": "Deleted the 'x(…, y, z, 20, 30)' function call"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-22 01:52:40 +03:00
},
"filePaths": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
2016-10-22 01:52:40 +03:00
],
"sha1": "7b56b3f5cc93525db8296697cf4172342acf9808",
2016-10-22 01:52:40 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "87e60bd80ad17dec9827433189e28c6b26e84d90"
2016-10-22 01:52:40 +03:00
}
,{
2016-10-31 23:14:58 +03:00
"testCaseDescription": "ruby-multiple-assignments-delete-rest-test",
2016-10-22 01:52:40 +03:00
"expectedResult": {
"changes": {
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb": [
2016-10-22 01:52:40 +03:00
{
"span": {
"delete": {
2016-10-22 01:52:40 +03:00
"start": [
2016-10-24 20:43:31 +03:00
1,
1
2016-10-22 01:52:40 +03:00
],
"end": [
2016-10-24 20:43:31 +03:00
1,
21
2016-10-22 01:52:40 +03:00
]
}
},
"summary": "Deleted the 'x(…, 40)' function call"
2016-10-24 20:43:31 +03:00
}
]
},
"errors": {}
2016-10-22 01:52:40 +03:00
},
"filePaths": [
2016-10-31 23:14:58 +03:00
"multiple-assignments.rb"
2016-10-22 01:52:40 +03:00
],
"sha1": "87e60bd80ad17dec9827433189e28c6b26e84d90",
2016-10-22 01:52:40 +03:00
"gitDir": "test/corpus/repos/ruby",
"sha2": "99cb54a96833cce9f6add73f966884f7b735594e"
2016-10-22 01:52:40 +03:00
}]