1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/template-string.json

348 lines
11 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-template-string-insert-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '`one line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index e69de29b..01f859b1 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -0,0 +1 @@",
"+`one line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "b0cccfc42d36aba8e42003998233c798245c627f..2040236e0fd466e286462380a49b72595d79d6a9"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-template-string-replacement-insert-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
13
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '`multi line`' template string"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '`one line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index 01f859b1..777fde68 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -1 +1,3 @@",
"+`multi line`",
"+`one line`",
" `one line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "2040236e0fd466e286462380a49b72595d79d6a9..05f27649aa9bc187d1ebfcc9810842f8992e3fd7"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-template-string-delete-insert-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
13
]
},
{
"start": [
1,
1
],
"end": [
1,
11
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the '`multi line`' template string with the '`one line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index 777fde68..657129fc 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -1,3 +1,3 @@",
"-`multi line`",
"+`one line`",
" `one line`",
" `one line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "05f27649aa9bc187d1ebfcc9810842f8992e3fd7..aa5a50db04e0712c494739ab35e56368a5a3f498"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-template-string-replacement-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
1
],
"end": [
1,
11
]
},
{
"start": [
1,
1
],
"end": [
1,
13
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the '`one line`' template string with the '`multi line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index 657129fc..777fde68 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -1,3 +1,3 @@",
"-`one line`",
"+`multi line`",
" `one line`",
" `one line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "aa5a50db04e0712c494739ab35e56368a5a3f498..b81a678bbbb5ef57d6c873d1fa629c0c23463dda"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-template-string-delete-replacement-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
13
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '`multi line`' template string"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '`one line`' template string"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
13
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the '`multi line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index 777fde68..2b8c0dde 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -1,3 +1,2 @@",
"-`multi line`",
"-`one line`",
" `one line`",
"+`multi line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "b81a678bbbb5ef57d6c873d1fa629c0c23463dda..f70c47ebd50d4c6a193f45e79414ba29cb16e719"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-template-string-delete-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
11
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '`one line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index 2b8c0dde..399f1173 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -1,2 +1 @@",
"-`one line`",
" `multi line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "f70c47ebd50d4c6a193f45e79414ba29cb16e719..bf45487f8f0f916e3bbd3a0b39f3dea7f723e069"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-template-string-delete-rest-test",
"expectedResult": {
"changes": {
"template-string.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
13
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the '`multi line`' template string"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"template-string.js"
],
"patch": [
"diff --git a/template-string.js b/template-string.js",
"index 399f1173..e69de29b 100644",
"--- a/template-string.js",
"+++ b/template-string.js",
"@@ -1 +0,0 @@",
"-`multi line`"
],
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
"shas": "bf45487f8f0f916e3bbd3a0b39f3dea7f723e069..6e93ce14abfffa0befb5a6168efdc830619e0319"
2016-10-11 18:12:20 +03:00
}]