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

348 lines
11 KiB
JSON

[{
"testCaseDescription": "ruby-rescue-modifier2-insert-test",
"expectedResult": {
"changes": {
"rescue-modifier2.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "6c195e290e7613379817885b55119b8158a86bb2..ccbc5b1238c33590f2f2d8de25cc77a39a322352"
}
,{
"testCaseDescription": "ruby-rescue-modifier2-replacement-insert-test",
"expectedResult": {
"changes": {
"rescue-modifier2.rb": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'rescue nil' modifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "ccbc5b1238c33590f2f2d8de25cc77a39a322352..bdc004cefba4d7a9462c07a1cc2344b6d436acf4"
}
,{
"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
]
}
]
},
"summary": "Replaced the 'bar' identifier with the 'foo' identifier in the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "bdc004cefba4d7a9462c07a1cc2344b6d436acf4..0b22cb5a465965c27dd9044b9d89a55caf5ee42b"
}
,{
"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
]
}
]
},
"summary": "Replaced the 'foo' identifier with the 'bar' identifier in the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "0b22cb5a465965c27dd9044b9d89a55caf5ee42b..b18711120acd0a77e1687a8f1e5ff4044e1ff54c"
}
,{
"testCaseDescription": "ruby-rescue-modifier2-delete-replacement-test",
"expectedResult": {
"changes": {
"rescue-modifier2.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'rescue nil' modifier"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'rescue nil' modifier"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "b18711120acd0a77e1687a8f1e5ff4044e1ff54c..dd5754f0a62ca3ebc8b724e37745873953c7493a"
}
,{
"testCaseDescription": "ruby-rescue-modifier2-delete-test",
"expectedResult": {
"changes": {
"rescue-modifier2.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "dd5754f0a62ca3ebc8b724e37745873953c7493a..1e5ba2921990ac256abe41be03b236a701541d9d"
}
,{
"testCaseDescription": "ruby-rescue-modifier2-delete-rest-test",
"expectedResult": {
"changes": {
"rescue-modifier2.rb": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'rescue nil' modifier"
}
]
},
"errors": {}
},
"filePaths": [
"rescue-modifier2.rb"
],
"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"
],
"gitDir": "test/corpus/repos/ruby",
"shas": "1e5ba2921990ac256abe41be03b236a701541d9d..dc9d24ac927d2ba1f4d7331d5edcf9888c6bfbdf"
}]