mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
623 lines
19 KiB
JSON
623 lines
19 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-method-invocation-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'print' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo.bar' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "e5721328087e5be744c5b668e305fc99890b37e9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "2b9043afb10a2ca6411519a90e0a9c5aa4f44281"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-invocation-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'print(\"hello world\")' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo.bar()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar(2, 3)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar(2, 3)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'print' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo.bar' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
7,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "2b9043afb10a2ca6411519a90e0a9c5aa4f44281",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f07df28e8d9ad60d4729009bcf9fb8b89fc6b6aa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-invocation-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'print' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo.bar' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'print(\"hello world\")' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo.bar()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar(2, 3)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar(2, 3)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "f07df28e8d9ad60d4729009bcf9fb8b89fc6b6aa",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4b74eb4caf4334ffd92a7eab1d1461e2d0d4afc2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-invocation-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'print(\"hello world\")' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo.bar()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar(2, 3)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'bar(2, 3)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'print' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo.bar' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "4b74eb4caf4334ffd92a7eab1d1461e2d0d4afc2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "041be1fe13cc2e5db3d68d034c1f5a97478f19dd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-invocation-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
8,
|
|
1
|
|
],
|
|
"end": [
|
|
8,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'print' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
9,
|
|
1
|
|
],
|
|
"end": [
|
|
9,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo.bar' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
10,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "041be1fe13cc2e5db3d68d034c1f5a97478f19dd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "776d591d642251decec4df060ce412906ee42fe0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-invocation-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'print' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
8
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo.bar' member access"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "776d591d642251decec4df060ce412906ee42fe0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e4483c3d44fb57c5a00b52078403ef79f335101d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-method-invocation-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"method-invocation.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'print(\"hello world\")' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo.bar()' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
3,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar(2, 3)' function call"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'bar(2, 3)' function call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"method-invocation.rb"
|
|
],
|
|
"sha1": "e4483c3d44fb57c5a00b52078403ef79f335101d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6df292caffa4c25ba3e2043d1d6074b9ebed31d6"
|
|
}]
|