mirror of
https://github.com/github/semantic.git
synced 2024-12-24 15:35:14 +03:00
470 lines
14 KiB
JSON
470 lines
14 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-var-declaration-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "53a957ef4eb59591aa292324c9d8a45e7b4ef059",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "eca8f41092ecc12fb3d8a50342b0da453975caa1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-var-declaration-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
16
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'z' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
5
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "eca8f41092ecc12fb3d8a50342b0da453975caa1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a706f998915f3f6d14c568b63c2c0bc0a83115d4"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-var-declaration-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
16
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'z' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "a706f998915f3f6d14c568b63c2c0bc0a83115d4",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9291790399d68cd679b339bffce499124ef3556d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-var-declaration-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'x' var assignment with the 'y' var assignment"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
16
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'z' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "9291790399d68cd679b339bffce499124ef3556d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4cddf496e69dd6e9b82c113448d8b304ef06befe"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-var-declaration-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
16
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'z' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
5
|
|
],
|
|
"end": [
|
|
2,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
5
|
|
],
|
|
"end": [
|
|
2,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
8
|
|
],
|
|
"end": [
|
|
2,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'y' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
16
|
|
],
|
|
"end": [
|
|
2,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'z' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "4cddf496e69dd6e9b82c113448d8b304ef06befe",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0e2767a5025c5f200613f4355ffc30f7fc52b04a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-var-declaration-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
10
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "0e2767a5025c5f200613f4355ffc30f7fc52b04a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6ac202ddaa40892f710109a8877210e45cfec3e8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-var-declaration-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"var-declaration.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
5
|
|
],
|
|
"end": [
|
|
1,
|
|
6
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
8
|
|
],
|
|
"end": [
|
|
1,
|
|
14
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'y' variable"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
16
|
|
],
|
|
"end": [
|
|
1,
|
|
17
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'z' variable"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"var-declaration.js"
|
|
],
|
|
"sha1": "6ac202ddaa40892f710109a8877210e45cfec3e8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "51cb9277c2233716e2f002c08a23656f70425838"
|
|
}]
|