1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/ruby/lambda.json
2016-11-02 10:52:40 -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": "d5eb6aafe0b69979f117cc346254fffc4d72e12b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "339c050bfe94a4673c5ea5d3e0bbeba8763485ad"
}
,{
"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": "339c050bfe94a4673c5ea5d3e0bbeba8763485ad",
"gitDir": "test/corpus/repos/ruby",
"sha2": "9576887072937bd1d7e3bf5ed9def2d40a009341"
}
,{
"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": "9576887072937bd1d7e3bf5ed9def2d40a009341",
"gitDir": "test/corpus/repos/ruby",
"sha2": "cb263adc483e306a93ce38928c0a74c058e5e67b"
}
,{
"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": "cb263adc483e306a93ce38928c0a74c058e5e67b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "71c8e84240ca59720e86c7c9a0f57c4a742814c4"
}
,{
"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": "71c8e84240ca59720e86c7c9a0f57c4a742814c4",
"gitDir": "test/corpus/repos/ruby",
"sha2": "ce9713c717d49a0f6ed31765cbc15b206a7d37af"
}
,{
"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": "ce9713c717d49a0f6ed31765cbc15b206a7d37af",
"gitDir": "test/corpus/repos/ruby",
"sha2": "0eef3ab584ff8001125dc7e63d7c72a1e18e65c0"
}
,{
"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": "0eef3ab584ff8001125dc7e63d7c72a1e18e65c0",
"gitDir": "test/corpus/repos/ruby",
"sha2": "08051cbb73e41f623b319d51e6dbf50cd45c359a"
}]