mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
407 lines
13 KiB
JSON
407 lines
13 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-named-function-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'myFunction' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "caeacf57ee751440e4f9b9f606df460c17499bdd",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "742ee12fc034748905977d3e1ba7818df34b9b66"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-named-function-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'anotherFunction' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'myFunction' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "742ee12fc034748905977d3e1ba7818df34b9b66",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "05f7b98428d31fa7ae97f65b6c901b8b392764f7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-named-function-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'anotherFunction' identifier with the 'myFunction' identifier in the myFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'arg1' identifier in the myFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'arg2' identifier in the myFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'arg2' identifier in the myFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
30
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'false' return statement in the myFunction function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "05f7b98428d31fa7ae97f65b6c901b8b392764f7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e60e4118dca7f21ef5d06d668e6f6961f94ece60"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-named-function-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
20
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
10
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'myFunction' identifier with the 'anotherFunction' identifier in the anotherFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
21
|
|
],
|
|
"end": [
|
|
1,
|
|
25
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'arg1' identifier in the anotherFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
27
|
|
],
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'arg2' identifier in the anotherFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
30
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'false' return statement in the anotherFunction function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
35
|
|
],
|
|
"end": [
|
|
1,
|
|
39
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'arg2' identifier in the anotherFunction function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "e60e4118dca7f21ef5d06d668e6f6961f94ece60",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0d662b70bd31f4c7a957db6e3c874f0e117d81ec"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-named-function-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'anotherFunction' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'myFunction' function"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'anotherFunction' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "0d662b70bd31f4c7a957db6e3c874f0e117d81ec",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2751fd48810beeaf43dbb897d5687e7bb4605ee8"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-named-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
42
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'myFunction' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "2751fd48810beeaf43dbb897d5687e7bb4605ee8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "71fbb6e60978e220e6e2f91e426df58fc0fd8317"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-named-function-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"named-function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'anotherFunction' function"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"named-function.js"
|
|
],
|
|
"sha1": "71fbb6e60978e220e6e2f91e426df58fc0fd8317",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "224d24020b3b8d08a8f3aced4b83b49a5779ba41"
|
|
}]
|