mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.7 KiB
JSON
287 lines
8.7 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(a, b, c) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "36171214f243f44b6a9662dc2afe32764cdb9cbb",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7a614fdb7f7c9845411ab658ef58146228e20453"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous() function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(a, b, c) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "7a614fdb7f7c9845411ab658ef58146228e20453",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d9bae837d29382dce59bc1cab6777691a8fcb0a7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
2
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced an anonymous() function with an anonymous(a, b, c) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "d9bae837d29382dce59bc1cab6777691a8fcb0a7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "10cfe7ef7340baaead75227fb07d5ad9023da3d0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced an anonymous(a, b, c) function with an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "10cfe7ef7340baaead75227fb07d5ad9023da3d0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "0c6932506e0cc6a031e72bcf8c22cf7b9ce3eaba"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous() function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(a, b, c) function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "0c6932506e0cc6a031e72bcf8c22cf7b9ce3eaba",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "54555109218bab3f5cb8ddba5ddbf333be21870b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
2
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(a, b, c) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "54555109218bab3f5cb8ddba5ddbf333be21870b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "80202cb1a38f6702933f7ceeec0550c3ac4f52a2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-dash-rocket-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda-dash-rocket.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda-dash-rocket.rb"
|
|
],
|
|
"sha1": "80202cb1a38f6702933f7ceeec0550c3ac4f52a2",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d5eb6aafe0b69979f117cc346254fffc4d72e12b"
|
|
}]
|