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/when.json
2016-11-03 14:27:47 -07:00

187 lines
5.2 KiB
JSON

[{
"testCaseDescription": "ruby-when-setup-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Added the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "9934d1d24e3402da9024250c197504600cba3305",
"gitDir": "test/corpus/repos/ruby",
"sha2": "b2cf1d876229bbe236cfb4cf5a6a6c6e0ce66aa8"
}
,{
"testCaseDescription": "ruby-when-insert-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'bar' when comparison in the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "b2cf1d876229bbe236cfb4cf5a6a6c6e0ce66aa8",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2870998a4c586929030d30c34562cc60560bfc1b"
}
,{
"testCaseDescription": "ruby-when-replacement-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"insert": {
"start": [
3,
3
],
"end": [
3,
6
]
}
},
"summary": "Added the 'baz' identifier in a when comparison"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "2870998a4c586929030d30c34562cc60560bfc1b",
"gitDir": "test/corpus/repos/ruby",
"sha2": "17b3e6181eb988c2c06f4fdf4d25768cb6181ad7"
}
,{
"testCaseDescription": "ruby-when-delete-replacement-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"delete": {
"start": [
3,
3
],
"end": [
3,
6
]
}
},
"summary": "Deleted the 'baz' identifier in a when comparison"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "17b3e6181eb988c2c06f4fdf4d25768cb6181ad7",
"gitDir": "test/corpus/repos/ruby",
"sha2": "2262c3d2a331a6c689571f8614bec37485b0e613"
}
,{
"testCaseDescription": "ruby-when-delete-insert-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'bar' when comparison in the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "2262c3d2a331a6c689571f8614bec37485b0e613",
"gitDir": "test/corpus/repos/ruby",
"sha2": "c8b8dd5e5bf6331c24dce7d4158597db6b5991fa"
}
,{
"testCaseDescription": "ruby-when-teardown-test",
"expectedResult": {
"changes": {
"when.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
4
]
}
},
"summary": "Deleted the 'foo' case statement"
}
]
},
"errors": {}
},
"filePaths": [
"when.rb"
],
"sha1": "c8b8dd5e5bf6331c24dce7d4158597db6b5991fa",
"gitDir": "test/corpus/repos/ruby",
"sha2": "5513d900ce05598c0cfb38566161b2de611b46f9"
}]