mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
461 lines
14 KiB
JSON
461 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-interpolation-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "9e9b553fcdf0aeffec50c59e9de9fe3788e2c3ed",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "66d41bf6f94b8d9fb5936298e4d2199bc9ab3893"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "66d41bf6f94b8d9fb5936298e4d2199bc9ab3893",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "fdeed2115bc2df78655b3c8a668fc28da64a61e3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "fdeed2115bc2df78655b3c8a668fc28da64a61e3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "fa9fe0c452631885012dccacc980eae73df42432"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "fa9fe0c452631885012dccacc980eae73df42432",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c618f6a013c3ec5662f4c4534edbb76271911f6e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "c618f6a013c3ec5662f4c4534edbb76271911f6e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ba9fb8f22a70c4254a1bebebd45420f1dbf3b558"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "ba9fb8f22a70c4254a1bebebd45420f1dbf3b558",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3adf71b8f47b55f6c1d339011facfb5d1e60ed88"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-interpolation-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"interpolation.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": [
|
|
"interpolation.rb"
|
|
],
|
|
"sha1": "3adf71b8f47b55f6c1d339011facfb5d1e60ed88",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "966ffa3a9db0de36a8dd3b0ed41c36f1265a51fd"
|
|
}]
|