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

402 lines
13 KiB
JSON

[{
"testCaseDescription": "javascript-do-while-statement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index e69de29..d1ec804 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -0,0 +1 @@",
"+do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "cd322134775da8db98f5a151ec8e2f5d9eddd3cf..2b58702fac7ff187b0f41a31b6fae16718c0ec4c"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Added the 'false' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index d1ec804..d9a410d 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1 +1,3 @@",
"+do { console.log(replacement); } while (false);",
"+do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "2b58702fac7ff187b0f41a31b6fae16718c0ec4c..fa2041b0ae98229dc1322fda8ebaa2d98dd4b1f7"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-insert-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
29
]
},
{
"start": [
1,
18
],
"end": [
1,
24
]
}
]
},
"summary": "Replaced the 'replacement' identifier with the 'insert' identifier in the console.log(insert) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
41
],
"end": [
1,
46
]
},
{
"start": [
1,
36
],
"end": [
1,
40
]
}
]
},
"summary": "Replaced 'false' with 'true' in the true do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index d9a410d..4197835 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,3 +1,3 @@",
"-do { console.log(replacement); } while (false);",
"+do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "fa2041b0ae98229dc1322fda8ebaa2d98dd4b1f7..c7d0a76295cd609ed29a5c857ff2d885eefb3610"
}
,{
"testCaseDescription": "javascript-do-while-statement-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
18
],
"end": [
1,
24
]
},
{
"start": [
1,
18
],
"end": [
1,
29
]
}
]
},
"summary": "Replaced the 'insert' identifier with the 'replacement' identifier in the console.log(replacement) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
36
],
"end": [
1,
40
]
},
{
"start": [
1,
41
],
"end": [
1,
46
]
}
]
},
"summary": "Replaced 'true' with 'false' in the false do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index 4197835..d9a410d 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,3 +1,3 @@",
"-do { console.log(insert); } while (true);",
"+do { console.log(replacement); } while (false);",
" do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "c7d0a76295cd609ed29a5c857ff2d885eefb3610..8887ecec6e5dc8852e1f29ffe74c0b79c304e04e"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
48
]
}
},
"summary": "Added the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index d9a410d..c5291b4 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,3 +1,2 @@",
"-do { console.log(replacement); } while (false);",
"-do { console.log(insert); } while (true);",
" do { console.log(insert); } while (true);",
"+do { console.log(replacement); } while (false);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "8887ecec6e5dc8852e1f29ffe74c0b79c304e04e..888367feff9a28c449258cd99afd8ac90e069f76"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'true' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index c5291b4..6085cb1 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1,2 +1 @@",
"-do { console.log(insert); } while (true);",
" do { console.log(replacement); } while (false);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "888367feff9a28c449258cd99afd8ac90e069f76..622706434ac7e362f28c08d79f7d8302ec086757"
}
,{
"testCaseDescription": "javascript-do-while-statement-delete-rest-test",
"expectedResult": {
"changes": {
"do-while-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
48
]
}
},
"summary": "Deleted the 'false' do/while statement"
}
]
},
"errors": {}
},
"filePaths": [
"do-while-statement.js"
],
"patch": [
"diff --git a/do-while-statement.js b/do-while-statement.js",
"index 6085cb1..e69de29 100644",
"--- a/do-while-statement.js",
"+++ b/do-while-statement.js",
"@@ -1 +0,0 @@",
"-do { console.log(replacement); } while (false);"
],
"gitDir": "test/corpus/repos/javascript",
"shas": "622706434ac7e362f28c08d79f7d8302ec086757..2795ba48a13af4b2c6f240761fd880dc6cd10c2b"
}]