mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
187 lines
5.2 KiB
JSON
187 lines
5.2 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-when-else-setup-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "5513d900ce05598c0cfb38566161b2de611b46f9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5f4c5f1e6fa59f26495d1de8d8e808158ea4ae1e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an else block in the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "5f4c5f1e6fa59f26495d1de8d8e808158ea4ae1e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e78645da3ee2ba6c9e07ffd6b473f8103a5b95d3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'qoz' identifier in an else block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "e78645da3ee2ba6c9e07ffd6b473f8103a5b95d3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "4f0e16a79a4a5b3e37e8f9a2789a53a4530e4524"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
3
|
|
],
|
|
"end": [
|
|
5,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'qoz' identifier in an else block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "4f0e16a79a4a5b3e37e8f9a2789a53a4530e4524",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8e52dcd19263f5aeb2a9acf69cfcf375a7190db3"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an else block in the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "8e52dcd19263f5aeb2a9acf69cfcf375a7190db3",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ced6c32ff092198cd659755ca7e39557181e50dd"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-teardown-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "ced6c32ff092198cd659755ca7e39557181e50dd",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "ac7d38e4ecbfcf7f44e03c5127d837da112419e8"
|
|
}]
|