mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
413 lines
12 KiB
JSON
413 lines
12 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-array-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ 1, 2, 3]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "fba342a18fffa0aa07e6efa94bbd78865f152e2a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f27f87e8dda43fbaeaf23377498d7ad3add5e620"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '['a', 'b', 'c']' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '[ 1, 2, 3]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "f27f87e8dda43fbaeaf23377498d7ad3add5e620",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5c195f22e8a087a75d33782dd06ed24dda0d60c9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added '3'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'a' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'b' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'c' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "5c195f22e8a087a75d33782dd06ed24dda0d60c9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8d0ab17a3cfb3ecf5ebb189711cc2eb32e73c607"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
2
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'a' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
7
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'b' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
12
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'c' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
3
|
|
],
|
|
"end": [
|
|
1,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '1'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
6
|
|
],
|
|
"end": [
|
|
1,
|
|
7
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '2'"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
9
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted '3'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "8d0ab17a3cfb3ecf5ebb189711cc2eb32e73c607",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "203b745805e5313ec2a53cf95cd511f5ad22eb64"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '['a', 'b', 'c']' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ 1, 2, 3]' array"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '['a', 'b', 'c']' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "203b745805e5313ec2a53cf95cd511f5ad22eb64",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "52d8ec56aa7e6e7ad351686e12cb9bc278b2ab6d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '[ 1, 2, 3]' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "52d8ec56aa7e6e7ad351686e12cb9bc278b2ab6d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "862d71dafabd312dca56a5b61da24797436024f2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-array-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"array.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '['a', 'b', 'c']' array"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"array.rb"
|
|
],
|
|
"sha1": "862d71dafabd312dca56a5b61da24797436024f2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "73a673c5ff7f561a8ba38db6dcb6296a8f35ecb5"
|
|
}]
|