1
1
mirror of https://github.com/github/semantic.git synced 2024-12-27 08:54:14 +03:00
semantic/test/corpus/diff-summaries/ruby/method-invocation.json
2016-10-26 15:44:53 -07:00

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": "b91053c0dcb38d222ea60dda6b742985fb39d27f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "03aa8b4da9a835d3fba5afd796a121eba38d99c4"
}
,{
"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": "03aa8b4da9a835d3fba5afd796a121eba38d99c4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "e27b72d894eb91bf00248dad244d0f8a99aff815"
}
,{
"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": "e27b72d894eb91bf00248dad244d0f8a99aff815",
"gitDir": "test/corpus/repos/ruby",
"sha2": "59b56f319488529bb415729d6675eaa53687ec52"
}
,{
"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": "59b56f319488529bb415729d6675eaa53687ec52",
"gitDir": "test/corpus/repos/ruby",
"sha2": "82255522b50c9d384a66fd477be4af7c3e1bdd68"
}
,{
"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": "82255522b50c9d384a66fd477be4af7c3e1bdd68",
"gitDir": "test/corpus/repos/ruby",
"sha2": "493c506d51dd52d3fdbe89b3cafd7cb01ab8317f"
}
,{
"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": "493c506d51dd52d3fdbe89b3cafd7cb01ab8317f",
"gitDir": "test/corpus/repos/ruby",
"sha2": "7ac42988ab09cfb3a83b47d36d42659c4c3b6778"
}
,{
"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": "7ac42988ab09cfb3a83b47d36d42659c4c3b6778",
"gitDir": "test/corpus/repos/ruby",
"sha2": "bdbb6617f1c79760e007867c152ea0e1905befd2"
}]