1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/ruby/subshell.json
2016-11-03 16:02:56 -07:00

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": "f8cc3489b25f8d1857452648c25c51084dbdbdb9..522071b01d711758caecf86fae864d7a5e5e190c"
}
,{
"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": "522071b01d711758caecf86fae864d7a5e5e190c..8339afa687e64dabdb372ff0b27bb39f832a1d02"
}
,{
"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": "8339afa687e64dabdb372ff0b27bb39f832a1d02..c719966658d8f95beafc1b182efd507251268a5b"
}
,{
"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": "c719966658d8f95beafc1b182efd507251268a5b..611fa19dd10019ef47b3d7477c12855fe89177f2"
}
,{
"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": "611fa19dd10019ef47b3d7477c12855fe89177f2..8d03313c9be4bcd64a2a6a3c4047c5497a00686b"
}
,{
"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": "8d03313c9be4bcd64a2a6a3c4047c5497a00686b..1b0cba06f36513f77bdbf325e75c866ed1311775"
}
,{
"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": "1b0cba06f36513f77bdbf325e75c866ed1311775..bcd6d0b339d47a3a232e595d43db61acf2bfae04"
}]