mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
353 lines
10 KiB
JSON
353 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-while-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'run' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "d1fcc46543cdfad1179898cabb376d3688bcc1b9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8766ff50a53e7209bdf11263bfc65a0d3f7aabcf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-while-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'run' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "8766ff50a53e7209bdf11263bfc65a0d3f7aabcf",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b49a5d19e72792d51f02b21d881dc81b994aae07"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-while-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'run' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "b49a5d19e72792d51f02b21d881dc81b994aae07",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a93948051fd006d4af645550063b6ed90cc202e8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-while-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'run' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "a93948051fd006d4af645550063b6ed90cc202e8",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "85c8eb2ecab98697559b340097c3d4370a9e5d65"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-while-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'run' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "85c8eb2ecab98697559b340097c3d4370a9e5d65",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ae7191cac9fb04962c3afcae5ece8af0034a555b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-while-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' while statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'run' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "ae7191cac9fb04962c3afcae5ece8af0034a555b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8a780b0d5bd67f2eca42e09e98ccab70284733c5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-while-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"while.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' while statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"while.rb"
|
|
],
|
|
"sha1": "8a780b0d5bd67f2eca42e09e98ccab70284733c5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9a3089125a4ba2914779aa40af31e6affbb41e81"
|
|
}]
|