mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
9.8 KiB
JSON
309 lines
9.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "f15ed2c50f158bdc680972378a52575dbc492025",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b9896d1260c7f4b9fd7388f1f4b403f6a597d93"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "9b9896d1260c7f4b9fd7388f1f4b403f6a597d93",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cbcb811994dcd0272b76076688ef0a610d9a4ca5"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'A different string with \"double\" quotes' string with the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "cbcb811994dcd0272b76076688ef0a610d9a4ca5",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d86a5265e2bccf5373edf45ce3cf23c44f0cd605"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'A string with \"double\" quotes' string with the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "d86a5265e2bccf5373edf45ce3cf23c44f0cd605",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c8b7ef7072fa07bd00b6784fbde52b446fb338e9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "c8b7ef7072fa07bd00b6784fbde52b446fb338e9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "298da348c90a750fb5171af2a58d8813eb064f8f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "298da348c90a750fb5171af2a58d8813eb064f8f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8c867f1717adf94286335d942f2a343c759e2d07"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "string.js",
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "8c867f1717adf94286335d942f2a343c759e2d07",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "ede522a00f4676035db2e9d76a9b702e5234917a"
|
|
}]
|