mirror of
https://github.com/github/semantic.git
synced 2024-12-25 07:55:12 +03:00
287 lines
8.4 KiB
JSON
287 lines
8.4 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-lambda-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "deb8280b0fedf14c0a784f2994a0f7042771540e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c7d5207160ce85057feb2d65082759cec5fe43e6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(x) function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "c7d5207160ce85057feb2d65082759cec5fe43e6",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "57519ba98dc2452cbbdd943f109300f9bff52708"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced an anonymous(x) function with an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "57519ba98dc2452cbbdd943f109300f9bff52708",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f7b4b99ef66920f64a499850591998eccffccad7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced an anonymous() function with an anonymous(x) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "f7b4b99ef66920f64a499850591998eccffccad7",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f90142f976f79e0182bc9d9f59a6f91775447033"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(x) function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous() function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(x) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "f90142f976f79e0182bc9d9f59a6f91775447033",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "b171e16f7c48d785a9fbf1699b2d14b5238c3df9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
15
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous() function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "b171e16f7c48d785a9fbf1699b2d14b5238c3df9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "541caf85d16cb854e6eff451bc8b0fe27082a58a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-lambda-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"lambda.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(x) function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"lambda.rb"
|
|
],
|
|
"sha1": "541caf85d16cb854e6eff451bc8b0fe27082a58a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "0b01d67ef284fda148af703901faaa50ed4c1c3c"
|
|
}]
|