2016-10-24 20:43:31 +03:00
|
|
|
[{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
|
|
"index e69de29..169f84d 100644",
|
|
|
|
"--- a/subshell.rb",
|
|
|
|
"+++ b/subshell.rb",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+`ls -la`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "37466370f19570447f01519a8c892afd6ced7df8..1bf98e4388e2ad3e9c34c809b5ca832225322d10"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"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`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "1bf98e4388e2ad3e9c34c809b5ca832225322d10..33fa9117db15ae917eed0a1b1c8ca7ddbe34c34b"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"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`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "33fa9117db15ae917eed0a1b1c8ca7ddbe34c34b..557c25df0051a3b1cc5eef17e6b5672ec8cb2f05"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"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`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "557c25df0051a3b1cc5eef17e6b5672ec8cb2f05..ec42eab8be33fb30520e262289787add0c360792"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"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`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "ec42eab8be33fb30520e262289787add0c360792..a8134eae4e792463e9bc682628731b8d9197b4cc"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"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`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "a8134eae4e792463e9bc682628731b8d9197b4cc..3fb5c33c43b44640392f47239b35f1064d5a68f2"
|
2016-10-24 20:43:31 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"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"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/subshell.rb b/subshell.rb",
|
|
|
|
"index acb0008..e69de29 100644",
|
|
|
|
"--- a/subshell.rb",
|
|
|
|
"+++ b/subshell.rb",
|
|
|
|
"@@ -1 +0,0 @@",
|
|
|
|
"-`git status`"
|
|
|
|
],
|
2016-10-24 20:43:31 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-01-26 04:27:46 +03:00
|
|
|
"shas": "3fb5c33c43b44640392f47239b35f1064d5a68f2..28aa7f167c9cd13555c78c78ce2484539360f682"
|
2016-10-24 20:43:31 +03:00
|
|
|
}]
|