mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +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": "f44956c8e350313dc0c3aa6a19dd68f221bb3e01",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "20dd07a603351a930781662d3f1759fc709fda5b"
|
|
}
|
|
,{
|
|
"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": "20dd07a603351a930781662d3f1759fc709fda5b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "74e35660182dedb2683a233ae41432d9a9c1676d"
|
|
}
|
|
,{
|
|
"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": "74e35660182dedb2683a233ae41432d9a9c1676d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a38cf1a7aaf4bd43bfa90d4d18bdf228ac49778c"
|
|
}
|
|
,{
|
|
"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": "a38cf1a7aaf4bd43bfa90d4d18bdf228ac49778c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "5e307c858ef96aecc3ec15156cfddd7a5a653482"
|
|
}
|
|
,{
|
|
"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": "5e307c858ef96aecc3ec15156cfddd7a5a653482",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "f8aeedd7012de98ee66a9ae5cf712a33dd68a3f8"
|
|
}
|
|
,{
|
|
"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": "f8aeedd7012de98ee66a9ae5cf712a33dd68a3f8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c28ecea2c86b0a11fa29702e9dca8e17f6225285"
|
|
}
|
|
,{
|
|
"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": "c28ecea2c86b0a11fa29702e9dca8e17f6225285",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c133ef4396a68d4ed57fbdd2e234087cac85fefb"
|
|
}]
|