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/lambda-dash-rocket.json
2017-02-06 10:44:04 -05:00

373 lines
11 KiB
JSON

[{
"testCaseDescription": "ruby-lambda-dash-rocket-insert-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Added an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index e69de29..87e5852 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -0,0 +1,4 @@",
"+-> (a, b, c) {",
"+ 1",
"+ 2",
"+}"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "f1330cd221cc5290eff93e43fae52bea85ae512b..8057513f7571e9b8a73b0a6e76f1b1b79e233b74"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-replacement-insert-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Added an anonymous() function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
5,
2
]
}
},
"summary": "Added an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 87e5852..3daf118 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,3 +1,8 @@",
"+-> { foo }",
"+-> (a, b, c) {",
"+ 1",
"+ 2",
"+}",
" -> (a, b, c) {",
" 1",
" 2"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "8057513f7571e9b8a73b0a6e76f1b1b79e233b74..c2f7023365f0af9ed5267acaf4c7e4bef7ba4837"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-insert-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
1,
11
]
},
{
"start": [
1,
1
],
"end": [
4,
2
]
}
]
},
"summary": "Replaced an anonymous() function with an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 3daf118..53ea219 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,4 +1,7 @@",
"--> { foo }",
"+-> (a, b, c) {",
"+ 1",
"+ 2",
"+}",
" -> (a, b, c) {",
" 1",
" 2"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "c2f7023365f0af9ed5267acaf4c7e4bef7ba4837..24d7890407ed66c9f6b3cf1190247169f14aca30"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-replacement-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"replace": [
{
"start": [
1,
1
],
"end": [
4,
2
]
},
{
"start": [
1,
1
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced an anonymous(a, b, c) function with an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 53ea219..3daf118 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,7 +1,4 @@",
"--> (a, b, c) {",
"- 1",
"- 2",
"-}",
"+-> { foo }",
" -> (a, b, c) {",
" 1",
" 2"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "24d7890407ed66c9f6b3cf1190247169f14aca30..889fdca02bc486869c143c5c1badb40ece77ed43"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-replacement-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted an anonymous() function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
5,
2
]
}
},
"summary": "Deleted an anonymous(a, b, c) function"
},
{
"span": {
"insert": {
"start": [
5,
1
],
"end": [
5,
11
]
}
},
"summary": "Added an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 3daf118..5e26f49 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,9 +1,5 @@",
"--> { foo }",
"--> (a, b, c) {",
"- 1",
"- 2",
"-}",
" -> (a, b, c) {",
" 1",
" 2",
" }",
"+-> { foo }"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "889fdca02bc486869c143c5c1badb40ece77ed43..d3feb7074747782d905843ce7a56f641a1a5703d"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
4,
2
]
}
},
"summary": "Deleted an anonymous(a, b, c) function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 5e26f49..72c62f8 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1,5 +1 @@",
"--> (a, b, c) {",
"- 1",
"- 2",
"-}",
" -> { foo }"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "d3feb7074747782d905843ce7a56f641a1a5703d..de70a8072f57897642e8dd0c17b0b17ce60d0791"
}
,{
"testCaseDescription": "ruby-lambda-dash-rocket-delete-rest-test",
"expectedResult": {
"changes": {
"lambda-dash-rocket.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
11
]
}
},
"summary": "Deleted an anonymous() function"
}
]
},
"errors": {}
},
"filePaths": [
"lambda-dash-rocket.rb"
],
"patch": [
"diff --git a/lambda-dash-rocket.rb b/lambda-dash-rocket.rb",
"index 72c62f8..e69de29 100644",
"--- a/lambda-dash-rocket.rb",
"+++ b/lambda-dash-rocket.rb",
"@@ -1 +0,0 @@",
"--> { foo }"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "de70a8072f57897642e8dd0c17b0b17ce60d0791..e9b82da017d2fd0d80f3425faa89c3cfe005493e"
}]