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": "6b12691f9d8fa142b89c383ba3c1caa541078670",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8334319e06e2f1cfd31a80722468d4540ac6be8d"
|
|
}
|
|
,{
|
|
"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": "8334319e06e2f1cfd31a80722468d4540ac6be8d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c8b10cf7a9dca5687577846bd6cc3123edd825f5"
|
|
}
|
|
,{
|
|
"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": "c8b10cf7a9dca5687577846bd6cc3123edd825f5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c00fa00b907877dc9b60a8010a0a1a452069daea"
|
|
}
|
|
,{
|
|
"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": "c00fa00b907877dc9b60a8010a0a1a452069daea",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a64ec24e89a5f19a2d4d3dcb722299b6524466b9"
|
|
}
|
|
,{
|
|
"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": "a64ec24e89a5f19a2d4d3dcb722299b6524466b9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "90b368c40d2af29a5fdefb63fa6a18cca3d52f79"
|
|
}
|
|
,{
|
|
"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": "90b368c40d2af29a5fdefb63fa6a18cca3d52f79",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "25a97a2c7c12d746093e7042815ed2603b97d967"
|
|
}
|
|
,{
|
|
"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": "25a97a2c7c12d746093e7042815ed2603b97d967",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "02ecaba524453059d61daa0a218cffd1d2903ba3"
|
|
}]
|