mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +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": "a5e754fb3003e912c8c00843afb2a6fdcac6c2a3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "930dddccc7092cf80fcb74972d4788ca00432580"
|
|
}
|
|
,{
|
|
"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": "930dddccc7092cf80fcb74972d4788ca00432580",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "fe885d3d878e3e9889eb0646934ba7e511bf13c8"
|
|
}
|
|
,{
|
|
"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": "fe885d3d878e3e9889eb0646934ba7e511bf13c8",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "0f504084d295994962f8e79e54b0fb2b58f89264"
|
|
}
|
|
,{
|
|
"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": "0f504084d295994962f8e79e54b0fb2b58f89264",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "7264ba40a87bf4ec3b2f2b6f03ae057f5179df9e"
|
|
}
|
|
,{
|
|
"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": "7264ba40a87bf4ec3b2f2b6f03ae057f5179df9e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "eb9db26a6641c0121d1d4d1c908375a7caacf37c"
|
|
}
|
|
,{
|
|
"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": "eb9db26a6641c0121d1d4d1c908375a7caacf37c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "02b89aaab641e4d9340251a3b1a1ef5f36b63096"
|
|
}
|
|
,{
|
|
"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": "02b89aaab641e4d9340251a3b1a1ef5f36b63096",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9ecc2a471ad5c0c86f510ca09aac442da2bd6a8b"
|
|
}]
|