mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
8.5 KiB
JSON
287 lines
8.5 KiB
JSON
[{
|
|
"testCaseDescription": "ruby-subshell-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the `ls -la` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "d1653fa66fb78544c6e9df83a16b0019074ccafe",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e2f36d1b756b25567b8597882e1ca590905551b1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-subshell-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the `git status` subshell command"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the `ls -la` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "e2f36d1b756b25567b8597882e1ca590905551b1",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "3cc8f03d3ddac0eff1fbc5fb9dba8affce632a23"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-subshell-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the `git status` subshell command with the `ls -la` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "3cc8f03d3ddac0eff1fbc5fb9dba8affce632a23",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "a669baef12ba4280e68eac7462521fecdb4279fb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-subshell-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the `ls -la` subshell command with the `git status` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "a669baef12ba4280e68eac7462521fecdb4279fb",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "e13be6aef3d2d60ae4a67f6a12cede873dcd3d04"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-subshell-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the `git status` subshell command"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the `ls -la` subshell command"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the `git status` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "e13be6aef3d2d60ae4a67f6a12cede873dcd3d04",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "f3e374bef94a9b9936689acf77107fcda2834e2e"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-subshell-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
9
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the `ls -la` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "f3e374bef94a9b9936689acf77107fcda2834e2e",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "6d0258998ae167a38f70007a094973c5a951df9c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "ruby-subshell-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subshell.rb": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the `git status` subshell command"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"subshell.rb"
|
|
],
|
|
"sha1": "6d0258998ae167a38f70007a094973c5a951df9c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "52a5077898138d77bfba4a93499474041ece77f0"
|
|
}]
|