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/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 e69de29..01f859b 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": "dffe792710a5ad52de12ed62e48340a71e5c9227..4f86472b03fd24538a67565981a8d25700240497"
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 01f859b..777fde6 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": "4f86472b03fd24538a67565981a8d25700240497..8e2e8be8c6d60e68e5851f727da2c71ace094f34"
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 777fde6..657129f 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": "8e2e8be8c6d60e68e5851f727da2c71ace094f34..a481b18c353836ec0291fd6a2e9ea424de6b7a8c"
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 657129f..777fde6 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": "a481b18c353836ec0291fd6a2e9ea424de6b7a8c..671ff7c523a3b938440bc9534540d94f391acd9e"
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 777fde6..2b8c0dd 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": "671ff7c523a3b938440bc9534540d94f391acd9e..ba89b5cfbffb97d143c19125b8ed8e468113cd32"
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 2b8c0dd..399f117 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": "ba89b5cfbffb97d143c19125b8ed8e468113cd32..ce95b79e18d47915e2eecdef309a73b64417d53c"
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 399f117..e69de29 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": "ce95b79e18d47915e2eecdef309a73b64417d53c..75f87f22428c68545ebb3f876a1b09caf59d75c9"
2016-10-11 18:12:20 +03:00
}]