2016-11-03 19:23:35 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Added the 'foo' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index e69de29..b0cea1a 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+foo rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "cd21edaf265df41611fbf13a0800f4e4115c15e1..ee82fb48f85e32423edfa0a919526c91bfbeeaa8"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Added the 'bar' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Added the 'foo' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index b0cea1a..595bf2e 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -1 +1,3 @@",
|
|
|
|
"+bar rescue nil",
|
|
|
|
"+foo rescue nil",
|
|
|
|
" foo rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "ee82fb48f85e32423edfa0a919526c91bfbeeaa8..5fc770fcd3afd4e9e05dd73b4c22a126a9d2611c"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the 'rescue foo' modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index 595bf2e..f59c8c2 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-bar rescue nil",
|
|
|
|
"+foo rescue nil",
|
|
|
|
" foo rescue nil",
|
|
|
|
" foo rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "5fc770fcd3afd4e9e05dd73b4c22a126a9d2611c..eb5e2ef6db48590b8048c005249ad24a0feea927"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"replace": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
4
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the 'rescue bar' modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index f59c8c2..595bf2e 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-foo rescue nil",
|
|
|
|
"+bar rescue nil",
|
|
|
|
" foo rescue nil",
|
|
|
|
" foo rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "eb5e2ef6db48590b8048c005249ad24a0feea927..628b24dadd23550504d8fcaa40bf5ef96ce13a42"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Deleted the 'bar' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Deleted the 'foo' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Added the 'bar' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index 595bf2e..0d0f274 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -1,3 +1,2 @@",
|
|
|
|
"-bar rescue nil",
|
|
|
|
"-foo rescue nil",
|
|
|
|
" foo rescue nil",
|
|
|
|
"+bar rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "628b24dadd23550504d8fcaa40bf5ef96ce13a42..0dacf0b04c9289b166ec82719cc3471d783dfd84"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Deleted the 'foo' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index 0d0f274..f7b54a5 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -1,2 +1 @@",
|
|
|
|
"-foo rescue nil",
|
|
|
|
" bar rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "0dacf0b04c9289b166ec82719cc3471d783dfd84..91834e2d3d2b453d304ec632da59c78c90284d01"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "ruby-rescue-modifier2-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"rescue-modifier2.rb": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 22:29:02 +03:00
|
|
|
"summary": "Deleted the 'bar' rescue modifier"
|
2016-11-03 19:23:35 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"rescue-modifier2.rb"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/rescue-modifier2.rb b/rescue-modifier2.rb",
|
|
|
|
"index f7b54a5..e69de29 100644",
|
|
|
|
"--- a/rescue-modifier2.rb",
|
|
|
|
"+++ b/rescue-modifier2.rb",
|
|
|
|
"@@ -1 +0,0 @@",
|
|
|
|
"-bar rescue nil"
|
|
|
|
],
|
2016-11-03 19:23:35 +03:00
|
|
|
"gitDir": "test/corpus/repos/ruby",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "91834e2d3d2b453d304ec632da59c78c90284d01..b616a75a1894341c88be0147f3d99ca16d223394"
|
2016-11-03 19:23:35 +03:00
|
|
|
}]
|