1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/array.json

413 lines
12 KiB
JSON
Raw Normal View History

2016-10-27 18:30:34 +03:00
[{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "94349aa3f15f41ff0090de5c2b54938e837ff3a3",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "7a506bfeea8f824f8fe1d27f2356c97722c0b391"
2016-10-27 18:30:34 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "7a506bfeea8f824f8fe1d27f2356c97722c0b391",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "50a60ddbbbd563c2fb47dd455b742894380ec336"
2016-10-27 18:30:34 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "50a60ddbbbd563c2fb47dd455b742894380ec336",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "d40c9087b3dff17d4a0cb3035f20a7a5060c012d"
2016-10-27 18:30:34 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "d40c9087b3dff17d4a0cb3035f20a7a5060c012d",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "45af5e2e7c08b83b1bef55cea13e941809fda71c"
2016-10-27 18:30:34 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "45af5e2e7c08b83b1bef55cea13e941809fda71c",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "f5284c935ae535f78d18de6003af3097941fb360"
2016-10-27 18:30:34 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "f5284c935ae535f78d18de6003af3097941fb360",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "d00357673b862b84f05a81c761ad3a360f92de5a"
2016-10-27 18:30:34 +03:00
}
,{
"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"
],
2016-11-02 20:52:40 +03:00
"sha1": "d00357673b862b84f05a81c761ad3a360f92de5a",
2016-10-27 18:30:34 +03:00
"gitDir": "test/corpus/repos/ruby",
2016-11-02 20:52:40 +03:00
"sha2": "10c58c9fc837fda27ada81b2ee2942b1a122fc1c"
2016-10-27 18:30:34 +03:00
}]