mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "94349aa3f15f41ff0090de5c2b54938e837ff3a3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7a506bfeea8f824f8fe1d27f2356c97722c0b391"
|
|
}
|
|
,{
|
|
"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": "7a506bfeea8f824f8fe1d27f2356c97722c0b391",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "50a60ddbbbd563c2fb47dd455b742894380ec336"
|
|
}
|
|
,{
|
|
"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": "50a60ddbbbd563c2fb47dd455b742894380ec336",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d40c9087b3dff17d4a0cb3035f20a7a5060c012d"
|
|
}
|
|
,{
|
|
"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": "d40c9087b3dff17d4a0cb3035f20a7a5060c012d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "45af5e2e7c08b83b1bef55cea13e941809fda71c"
|
|
}
|
|
,{
|
|
"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": "45af5e2e7c08b83b1bef55cea13e941809fda71c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f5284c935ae535f78d18de6003af3097941fb360"
|
|
}
|
|
,{
|
|
"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": "f5284c935ae535f78d18de6003af3097941fb360",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d00357673b862b84f05a81c761ad3a360f92de5a"
|
|
}
|
|
,{
|
|
"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": "d00357673b862b84f05a81c761ad3a360f92de5a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "10c58c9fc837fda27ada81b2ee2942b1a122fc1c"
|
|
}]
|