2016-10-06 02:17:46 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-named-function-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'myFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "2f00ecb14d10a4cc210b7a56309fc75db90f3b64",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "e87e0464ade6d9ccfcf8858e8360eed0892ac9d2"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-named-function-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'anotherFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'myFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "e87e0464ade6d9ccfcf8858e8360eed0892ac9d2",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "233d845790d1fb1c6914aa56ee916044c1491955"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-named-function-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'anotherFunction' identifier with the 'myFunction' identifier in the myFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'arg1' identifier in the myFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
31
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'arg2' identifier in the myFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'arg2' identifier in the myFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'false' return statement in the myFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "233d845790d1fb1c6914aa56ee916044c1491955",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "6591af1b718467293fb40094d31d8bcd1bc0a679"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-named-function-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'myFunction' identifier with the 'anotherFunction' identifier in the anotherFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'arg1' identifier in the anotherFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
27
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
31
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
30
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'false' return statement in the anotherFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "6591af1b718467293fb40094d31d8bcd1bc0a679",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "ea7b2d944b9f4b906b750883dc50754096ac197d"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-named-function-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'anotherFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'myFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'anotherFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "ea7b2d944b9f4b906b750883dc50754096ac197d",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "d5d86035b6457b7e1f55cbe249d2f36cca54ca86"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-named-function-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'myFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "d5d86035b6457b7e1f55cbe249d2f36cca54ca86",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "ac73db0211c8b73c9ce79a3c730606fdfca84dbe"
|
2016-10-06 02:17:46 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-named-function-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"named-function.js": [
|
2016-10-07 18:28:57 +03:00
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "named-function.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
45
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'anotherFunction' function",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
2016-10-06 02:17:46 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"named-function.js"
|
|
|
|
],
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha1": "ac73db0211c8b73c9ce79a3c730606fdfca84dbe",
|
2016-10-06 02:17:46 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-07 18:28:57 +03:00
|
|
|
"sha2": "6efc7d3ef6f891602e19a27ed0c598e6c5e179ea"
|
2016-10-06 02:17:46 +03:00
|
|
|
}]
|