mirror of
https://github.com/github/semantic.git
synced 2024-12-22 14:21:31 +03:00
309 lines
9.9 KiB
JSON
309 lines
9.9 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-template-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "d3aee735401b2b9c803e3d684ab3c6b96a16898f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0bf1b7877627bfb8da6474326584c9caaa1b9bf9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "0bf1b7877627bfb8da6474326584c9caaa1b9bf9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "36c95439a521f5cb2a91e8139cf324044e753ac9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '`multi line`' template string with the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "36c95439a521f5cb2a91e8139cf324044e753ac9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8604dc99b4ccf972649343fdc6a95a17f7823709"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the '`one line`' template string with the '`multi line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "8604dc99b4ccf972649343fdc6a95a17f7823709",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ae3d15a910e3f12cb984f003a26e0f1d480c20c4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`multi line`' template string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
2,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the '`multi line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "ae3d15a910e3f12cb984f003a26e0f1d480c20c4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "857c899c43b360b8e15250c028feb13b37472719"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
11
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`one line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "857c899c43b360b8e15250c028feb13b37472719",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "32363666c860768e31d1c805ddee49c819f887a6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-template-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"template-string.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "template-string.js",
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the '`multi line`' template string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"template-string.js"
|
|
],
|
|
"sha1": "32363666c860768e31d1c805ddee49c819f887a6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "67dfbd7b45236e87dcd260ea7ac3c14b307c474f"
|
|
}]
|