mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
263 lines
7.6 KiB
JSON
263 lines
7.6 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-case-when-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "7b88300c1604ec1f6e775ac48ea3f43087545738",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "cba20046e29c4a43a6a2f7a20fbe71372ea2f485"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-case-when-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "cba20046e29c4a43a6a2f7a20fbe71372ea2f485",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "31387a19632065bd797ebae9c680b375b46e72a4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-case-when-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an else block in a case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "31387a19632065bd797ebae9c680b375b46e72a4",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "299fdb0e06b8397dc6fe2ba240ba90134d006a07"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-case-when-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
4,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an else block in a case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "299fdb0e06b8397dc6fe2ba240ba90134d006a07",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d1c0e2fa239eae1685645481516402d0219bc59e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-case-when-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
1
|
|
],
|
|
"end": [
|
|
10,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "d1c0e2fa239eae1685645481516402d0219bc59e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "df3f41005b7a453a3eaf77ef4192a25bfa8aee5a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-case-when-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
4,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "df3f41005b7a453a3eaf77ef4192a25bfa8aee5a",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "65383838c56a79f86304217a71799ce62d24e416"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-case-when-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"case-when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"case-when-else.rb"
|
|
],
|
|
"sha1": "65383838c56a79f86304217a71799ce62d24e416",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f7e62e18ec0e13cd8261dee63a3b1559d6c5c8cd"
|
|
}]
|