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": "6c783d6f426f41a4de5d6cf3224ffa9d09e0f06a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8a1fe8d62097990b764f71ce1d589cb3c488dd3d"
|
|
}
|
|
,{
|
|
"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": "8a1fe8d62097990b764f71ce1d589cb3c488dd3d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c0a9f4257171ffd7c1711efe5b03939666b4db13"
|
|
}
|
|
,{
|
|
"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": "c0a9f4257171ffd7c1711efe5b03939666b4db13",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3167ed988334ac30a6a939803b05e18935170d07"
|
|
}
|
|
,{
|
|
"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": "3167ed988334ac30a6a939803b05e18935170d07",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "1e2d2c7db423fbd3449c64496aec4de935b9df3c"
|
|
}
|
|
,{
|
|
"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": "1e2d2c7db423fbd3449c64496aec4de935b9df3c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6582452c94bba1b811fcda0d0d600bb05321c320"
|
|
}
|
|
,{
|
|
"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": "6582452c94bba1b811fcda0d0d600bb05321c320",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b31284c37efeb1b5575380593123d557d12147e5"
|
|
}
|
|
,{
|
|
"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": "b31284c37efeb1b5575380593123d557d12147e5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b351f7b6259512218bee8229d9875a7d9d05918d"
|
|
}]
|