1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/ruby/lambda.json
2016-10-27 12:47:27 -07:00

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": "aa0d20f0d3813c038e73fea028a02a8de3ac01ef",
"gitDir": "test/corpus/repos/ruby",
"sha2": "abb9d4b0a6499194d15a269017661f22a2c2b0ea"
}
,{
"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": "abb9d4b0a6499194d15a269017661f22a2c2b0ea",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a3e16aead6c35bbba3e52d5d0d588b4f64321749"
}
,{
"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": "a3e16aead6c35bbba3e52d5d0d588b4f64321749",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c6b9db35f92dc59c19503cf69faf9b6e722be5d7"
}
,{
"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": "c6b9db35f92dc59c19503cf69faf9b6e722be5d7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "4d1dbab824a9728fb5de69dcc7922da6cb3e2cc6"
}
,{
"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": "4d1dbab824a9728fb5de69dcc7922da6cb3e2cc6",
"gitDir": "test/corpus/repos/ruby",
"sha2": "00b1c4c4fd3767b2f626ff07113cc14a66ad3e02"
}
,{
"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": "00b1c4c4fd3767b2f626ff07113cc14a66ad3e02",
"gitDir": "test/corpus/repos/ruby",
"sha2": "67d6c1129f732ba18817adc055af06b5d3952ee7"
}
,{
"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": "67d6c1129f732ba18817adc055af06b5d3952ee7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "a40b4f421d8b7ec967669916aa1cc42a51ed3f73"
}]