mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
348 lines
10 KiB
JSON
348 lines
10 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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index e69de29..169f84d 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -0,0 +1 @@",
|
|
"+`ls -la`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "37466370f19570447f01519a8c892afd6ced7df8..1bf98e4388e2ad3e9c34c809b5ca832225322d10"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index 169f84d..4b279f6 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -1 +1,3 @@",
|
|
"+`git status`",
|
|
"+`ls -la`",
|
|
" `ls -la`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "1bf98e4388e2ad3e9c34c809b5ca832225322d10..33fa9117db15ae917eed0a1b1c8ca7ddbe34c34b"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index 4b279f6..6781ff3 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-`git status`",
|
|
"+`ls -la`",
|
|
" `ls -la`",
|
|
" `ls -la`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "33fa9117db15ae917eed0a1b1c8ca7ddbe34c34b..557c25df0051a3b1cc5eef17e6b5672ec8cb2f05"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index 6781ff3..4b279f6 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-`ls -la`",
|
|
"+`git status`",
|
|
" `ls -la`",
|
|
" `ls -la`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "557c25df0051a3b1cc5eef17e6b5672ec8cb2f05..ec42eab8be33fb30520e262289787add0c360792"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index 4b279f6..c695b4c 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-`git status`",
|
|
"-`ls -la`",
|
|
" `ls -la`",
|
|
"+`git status`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "ec42eab8be33fb30520e262289787add0c360792..a8134eae4e792463e9bc682628731b8d9197b4cc"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index c695b4c..acb0008 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -1,2 +1 @@",
|
|
"-`ls -la`",
|
|
" `git status`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "a8134eae4e792463e9bc682628731b8d9197b4cc..3fb5c33c43b44640392f47239b35f1064d5a68f2"
|
|
}
|
|
,{
|
|
"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"
|
|
],
|
|
"patch": [
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
"index acb0008..e69de29 100644",
|
|
"--- a/subshell.rb",
|
|
"+++ b/subshell.rb",
|
|
"@@ -1 +0,0 @@",
|
|
"-`git status`"
|
|
],
|
|
"gitDir": "test/corpus/repos/ruby",
|
|
"shas": "3fb5c33c43b44640392f47239b35f1064d5a68f2..28aa7f167c9cd13555c78c78ce2484539360f682"
|
|
}]
|