mirror of
https://github.com/github/semantic.git
synced 2024-12-26 00:12:29 +03:00
263 lines
7.5 KiB
JSON
263 lines
7.5 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-when-else-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "ec3951c0b3dd8098f16e44db974fe0ae9f54e68e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3e9490a17aa7b8de8f1b9da8f16936d00f02f3d0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "3e9490a17aa7b8de8f1b9da8f16936d00f02f3d0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6a55992ed83a22acee690724fb27c7602dc203d0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'qoz' identifier in an else block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "6a55992ed83a22acee690724fb27c7602dc203d0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "eb050325465809da02f9eac02d5f0fd58a34e98d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
5,
|
|
2
|
|
],
|
|
"end": [
|
|
5,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'qoz' identifier in an else block"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "eb050325465809da02f9eac02d5f0fd58a34e98d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "2f9667691df40fd129950ae96d504cc9e4a07115"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
7,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
6,
|
|
1
|
|
],
|
|
"end": [
|
|
11,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "2f9667691df40fd129950ae96d504cc9e4a07115",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "5ddb7b05815111c5f855a8483602e5ed84d7807d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
5,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "5ddb7b05815111c5f855a8483602e5ed84d7807d",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "356a3074b52bae43df83b49366184868aac4ad88"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-when-else-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"when-else.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
6,
|
|
4
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'foo' case statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"when-else.rb"
|
|
],
|
|
"sha1": "356a3074b52bae43df83b49366184868aac4ad88",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "bfca7e21e4be7154bd72a73c426c00bc2596eddc"
|
|
}]
|