mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +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": "9ecc2a471ad5c0c86f510ca09aac442da2bd6a8b",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c0546cb82a30cc134cb1093d632373a2f3b9c7bc"
|
|
}
|
|
,{
|
|
"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": "c0546cb82a30cc134cb1093d632373a2f3b9c7bc",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "769b0017d54af5460b9314f6505d01bca84b26d0"
|
|
}
|
|
,{
|
|
"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": "769b0017d54af5460b9314f6505d01bca84b26d0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5cdd114b41a2b4b9944046c460bfb5ebd6fe5ca5"
|
|
}
|
|
,{
|
|
"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": "5cdd114b41a2b4b9944046c460bfb5ebd6fe5ca5",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "69e98d81bbcec1aaacd06d6f393e025452c82b4e"
|
|
}
|
|
,{
|
|
"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": "69e98d81bbcec1aaacd06d6f393e025452c82b4e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f16e9d8ef1296bc000d691d0ffca85fee00c5580"
|
|
}
|
|
,{
|
|
"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": "f16e9d8ef1296bc000d691d0ffca85fee00c5580",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ea7b398f8e338e5b7118003a40bcad036eb9db19"
|
|
}
|
|
,{
|
|
"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": "ea7b398f8e338e5b7118003a40bcad036eb9db19",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "11c1f670003a6d95a99b37f02ad9c5628e60c3cd"
|
|
}]
|