1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/ruby/multiple_assignments.json
2016-10-24 10:43:31 -07:00

1028 lines
32 KiB
JSON

[{
"testCaseDescription": "ruby-multiple_assignments-insert-test",
"expectedResult": {
"changes": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
1,
7
],
"end": [
1,
13
]
}
},
"summary": "Added 'z' assignment"
},
{
"span": {
"insert": {
"start": [
1,
15
],
"end": [
1,
17
]
}
},
"summary": "Added '20'"
},
{
"span": {
"insert": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Added '30'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Added ',' at line 1, column 2 - line 1, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "aecb98be7694937e1f25be7cec17965656cf4895",
"gitDir": "test/corpus/repos/ruby",
"sha2": "284594ba69f70d79016dcfa908f48dc786a8dcbe"
}
,{
"testCaseDescription": "ruby-multiple_assignments-replacement-insert-test",
"expectedResult": {
"changes": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
17
]
}
},
"summary": "Added 'aVariable' identifier"
},
{
"span": {
"insert": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Added '40'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
2,
7
],
"end": [
2,
13
]
}
},
"summary": "Added 'z' assignment"
},
{
"span": {
"insert": {
"start": [
2,
15
],
"end": [
2,
17
]
}
},
"summary": "Added '20'"
},
{
"span": {
"insert": {
"start": [
2,
19
],
"end": [
2,
21
]
}
},
"summary": "Added '30'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Added ',' at line 1, column 2 - line 1, column 3"
},
{
"span": {
"insert": {
"start": [
2,
2
],
"end": [
2,
3
]
}
},
"summary": "Added ',' at line 2, column 2 - line 2, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "284594ba69f70d79016dcfa908f48dc786a8dcbe",
"gitDir": "test/corpus/repos/ruby",
"sha2": "8dc8a9f60efd872f213eb7289e2089497dcc300b"
}
,{
"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"
},
{
"span": {
"replace": [
{
"start": [
1,
2
],
"end": [
1,
3
]
},
{
"start": [
1,
7
],
"end": [
1,
13
]
}
]
},
"summary": "Replaced the ',' at line 1, column 2 - line 1, column 3 with the 'z' assignment"
},
{
"span": {
"insert": {
"start": [
1,
15
],
"end": [
1,
17
]
}
},
"summary": "Added '20'"
},
{
"span": {
"replace": [
{
"start": [
1,
19
],
"end": [
1,
21
]
},
{
"start": [
1,
19
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced '40' with '30'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Added the ',' at line 1, column 2 - line 1, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "8dc8a9f60efd872f213eb7289e2089497dcc300b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "6fe68b236b4b6b1966f43debabf365c6747e9e5f"
}
,{
"testCaseDescription": "ruby-multiple_assignments-replacement-test",
"expectedResult": {
"changes": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Added the 'y' identifier"
},
{
"span": {
"insert": {
"start": [
1,
8
],
"end": [
1,
17
]
}
},
"summary": "Added the 'aVariable' identifier"
},
{
"span": {
"insert": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Added '40'"
},
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted the 'y' identifier"
},
{
"span": {
"delete": {
"start": [
1,
7
],
"end": [
1,
13
]
}
},
"summary": "Deleted the 'z' assignment"
},
{
"span": {
"delete": {
"start": [
1,
15
],
"end": [
1,
17
]
}
},
"summary": "Deleted '20'"
},
{
"span": {
"delete": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Deleted '30'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"insert": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Added the ',' at line 1, column 2 - line 1, column 3"
},
{
"span": {
"delete": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Deleted the ',' at line 1, column 2 - line 1, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "6fe68b236b4b6b1966f43debabf365c6747e9e5f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "ddc42e9b11caa3922ddad5cceb57c565bba93b0b"
}
,{
"testCaseDescription": "ruby-multiple_assignments-delete-replacement-test",
"expectedResult": {
"changes": {
"multiple_assignments.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
17
]
}
},
"summary": "Deleted 'aVariable' identifier"
},
{
"span": {
"delete": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Deleted '40'"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
2,
7
],
"end": [
2,
13
]
}
},
"summary": "Deleted 'z' assignment"
},
{
"span": {
"delete": {
"start": [
2,
15
],
"end": [
2,
17
]
}
},
"summary": "Deleted '20'"
},
{
"span": {
"delete": {
"start": [
2,
19
],
"end": [
2,
21
]
}
},
"summary": "Deleted '30'"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
2
]
}
},
"summary": "Added 'x' identifier"
},
{
"span": {
"insert": {
"start": [
2,
4
],
"end": [
2,
5
]
}
},
"summary": "Added 'y' identifier"
},
{
"span": {
"insert": {
"start": [
2,
8
],
"end": [
2,
17
]
}
},
"summary": "Added 'aVariable' identifier"
},
{
"span": {
"insert": {
"start": [
2,
19
],
"end": [
2,
21
]
}
},
"summary": "Added '40'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"delete": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Deleted ',' at line 1, column 2 - line 1, column 3"
},
{
"span": {
"delete": {
"start": [
2,
2
],
"end": [
2,
3
]
}
},
"summary": "Deleted ',' at line 2, column 2 - line 2, column 3"
},
{
"span": {
"insert": {
"start": [
2,
2
],
"end": [
2,
3
]
}
},
"summary": "Added ',' at line 2, column 2 - line 2, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "ddc42e9b11caa3922ddad5cceb57c565bba93b0b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "f210bccb314fafedc9b60571d8f2aa1164910fa2"
}
,{
"testCaseDescription": "ruby-multiple_assignments-delete-test",
"expectedResult": {
"changes": {
"multiple_assignments.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
1,
7
],
"end": [
1,
13
]
}
},
"summary": "Deleted 'z' assignment"
},
{
"span": {
"delete": {
"start": [
1,
15
],
"end": [
1,
17
]
}
},
"summary": "Deleted '20'"
},
{
"span": {
"delete": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Deleted '30'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"delete": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Deleted ',' at line 1, column 2 - line 1, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "f210bccb314fafedc9b60571d8f2aa1164910fa2",
"gitDir": "test/corpus/repos/ruby",
"sha2": "dbe86231b61a6d5fa5514383df8763ebe4653192"
}
,{
"testCaseDescription": "ruby-multiple_assignments-delete-rest-test",
"expectedResult": {
"changes": {
"multiple_assignments.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
2
]
}
},
"summary": "Deleted 'x' identifier"
},
{
"span": {
"delete": {
"start": [
1,
4
],
"end": [
1,
5
]
}
},
"summary": "Deleted 'y' identifier"
},
{
"span": {
"delete": {
"start": [
1,
8
],
"end": [
1,
17
]
}
},
"summary": "Deleted 'aVariable' identifier"
},
{
"span": {
"delete": {
"start": [
1,
19
],
"end": [
1,
21
]
}
},
"summary": "Deleted '40'"
}
]
},
"errors": {
"multiple_assignments.rb": [
{
"span": {
"delete": {
"start": [
1,
2
],
"end": [
1,
3
]
}
},
"summary": "Deleted ',' at line 1, column 2 - line 1, column 3"
}
]
}
},
"filePaths": [
"multiple_assignments.rb"
],
"sha1": "dbe86231b61a6d5fa5514383df8763ebe4653192",
"gitDir": "test/corpus/repos/ruby",
"sha2": "20dbfc2465faf5448a116a5bee396d0ce69a3f4d"
}]