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-01-10 16:58:40 -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": "69993754f505cc3c6f9bb8c3479beb47275e576e..5974564f63935e6343c4bfe61aae3417b41a2407"
}
,{
"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": "5974564f63935e6343c4bfe61aae3417b41a2407..64225641ae8c14bb6337cfbce7e78d12ad61589f"
}
,{
"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": "64225641ae8c14bb6337cfbce7e78d12ad61589f..e2e4c8558eacbf8e1857f0b319293e9a2ab9cddd"
}
,{
"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": "e2e4c8558eacbf8e1857f0b319293e9a2ab9cddd..46f2d6fa6874c77efc83968874cf2373d6d656aa"
}
,{
"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": "46f2d6fa6874c77efc83968874cf2373d6d656aa..c56039b840df81eae53a6270fc413dc3d209f964"
}
,{
"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": "c56039b840df81eae53a6270fc413dc3d209f964..15e4120130ec3c5a87af4afa75d1491ef754ba9d"
}
,{
"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": "15e4120130ec3c5a87af4afa75d1491ef754ba9d..45bfc111144021fc57c0cb1459ab1c22f0b60771"
}]