mirror of
https://github.com/github/semantic.git
synced 2024-12-27 00:44:57 +03:00
461 lines
14 KiB
JSON
461 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-interpolation-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "7d6451c4f29098d136592c80bb397e4bd8b57135",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d0b635c8f7e1f0faed6a056e90ee1fc3c4ae5f3e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "d0b635c8f7e1f0faed6a056e90ee1fc3c4ae5f3e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5d41f920bdfd5b45487cccb6ba194ef115b753ae"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "5d41f920bdfd5b45487cccb6ba194ef115b753ae",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "45dba235efc56e61ca6d8bf3d94fed003cce6f49"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'bar' identifier with the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "45dba235efc56e61ca6d8bf3d94fed003cce6f49",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8f79de42cf477b22d9c26691b014f8546e531ca1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
9
|
|
],
|
|
"end": [
|
|
3,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
8
|
|
],
|
|
"end": [
|
|
4,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "8f79de42cf477b22d9c26691b014f8546e531ca1",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "dc51cbe1427881083a4522da87f5e72e8b247725"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "dc51cbe1427881083a4522da87f5e72e8b247725",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "233d63ff825a176e2d9cd62451b881873c205350"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"symbol.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
12
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"symbol.rb"
|
|
],
|
|
"sha1": "233d63ff825a176e2d9cd62451b881873c205350",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3333c08dfd237dd8d77b0dfd0b78a3b52274e38a"
|
|
}]
|