mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.8 KiB
JSON
287 lines
8.8 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-string-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "ad80e055e0c410a3cdfb2d7337d93ddc04d8e133",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2a0c77c7be941de0f7b685ffa1d1cb8eaf8295c9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "2a0c77c7be941de0f7b685ffa1d1cb8eaf8295c9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6aa1cf06008a89a96399869f58f592f33703bef2"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'A different string with \"double\" quotes' string with the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "6aa1cf06008a89a96399869f58f592f33703bef2",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "149faf05cc363689233be83aa6fe39eb144bfc8d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'A string with \"double\" quotes' string with the 'A different string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "149faf05cc363689233be83aa6fe39eb144bfc8d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b66889555b222d79a51e6d6ef4c92d4dd701578"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'A different string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "9b66889555b222d79a51e6d6ef4c92d4dd701578",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "32e0b9b27410fe256e788ce232a898882bdc6978"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
32
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "32e0b9b27410fe256e788ce232a898882bdc6978",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dc50ebe6d6d6b77bc4d53bade496da8417eefdc6"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-string-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"string.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'A different string with \"double\" quotes' string"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"string.js"
|
|
],
|
|
"sha1": "dc50ebe6d6d6b77bc4d53bade496da8417eefdc6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "219f1d3d7d1848c03934a3c03323d75c8fdd3d56"
|
|
}]
|