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": "fe66833a04f33c96627a87860a62d880236fd92f",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "745a792b7a3cdec1d407cc532a58ca8477d9d16c"
|
|
}
|
|
,{
|
|
"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": "745a792b7a3cdec1d407cc532a58ca8477d9d16c",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "d8ff9f5e9a73de0045da4861594bb9d72c8b6c07"
|
|
}
|
|
,{
|
|
"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": "d8ff9f5e9a73de0045da4861594bb9d72c8b6c07",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "9c18664338475efba1b4efcdb34b39d62e38e6b0"
|
|
}
|
|
,{
|
|
"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": "9c18664338475efba1b4efcdb34b39d62e38e6b0",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "81682bd72d4ca912a9e065664f1a8f6261aeb678"
|
|
}
|
|
,{
|
|
"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": "81682bd72d4ca912a9e065664f1a8f6261aeb678",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "016d31d286e460a658f3d632fd95e74c6dabca68"
|
|
}
|
|
,{
|
|
"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": "016d31d286e460a658f3d632fd95e74c6dabca68",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "8878710948511099200d9eaf71b8c0c5069f89a9"
|
|
}
|
|
,{
|
|
"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": "8878710948511099200d9eaf71b8c0c5069f89a9",
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"sha2": "c736c945fe8efbed56310803a1a66638636f65be"
|
|
}]
|