mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
407 lines
12 KiB
JSON
407 lines
12 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-if-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "214e09e87f3e1e6bfdd4c3c5a47d96d9a6ce4e29",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ae105418e96a56550f471a72ea7ef0452a372110"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "ae105418e96a56550f471a72ea7ef0452a372110",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "99d47b1932334bd7fe830fb79eada0057efa2162"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' identifier with the 'foo' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'quux' elsif block"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an else block"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "99d47b1932334bd7fe830fb79eada0057efa2162",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8aeaeb873ac0e24ba849b85be29f661d258009af"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
4
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'foo' identifier with the 'x' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
3
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'quux' elsif block"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an else block"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "8aeaeb873ac0e24ba849b85be29f661d258009af",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "49308a33414b1b1686b2b79a348c72e640751f68"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
12,
|
|
1
|
|
],
|
|
"end": [
|
|
18,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "49308a33414b1b1686b2b79a348c72e640751f68",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a6447fe885dd392e4223fb6ed1ca3089c4f505d7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "a6447fe885dd392e4223fb6ed1ca3089c4f505d7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ed895d3b677577c60ddd70ab41448152a5ec623c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-if-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"if.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' if statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' if statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"if.rb"
|
|
],
|
|
"sha1": "ed895d3b677577c60ddd70ab41448152a5ec623c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f75d3205ca0b14b24910456e7aa4315ae73e02e0"
|
|
}]
|