1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00
semantic/test/corpus/diff-summaries/javascript/named-function.json
2016-10-11 11:12:20 -04:00

445 lines
15 KiB
JSON

[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"that": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "5fe4477fe4c9d164946d8aaf8fe66f107b0901b4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c86bb45b4e0f5b90e2ea9a371df0026ac6b147ca"
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"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"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "c86bb45b4e0f5b90e2ea9a371df0026ac6b147ca",
"gitDir": "test/corpus/repos/javascript",
"sha2": "370e7dcd8b0e49fa442f84396ad081ec1e61657e"
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"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"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "370e7dcd8b0e49fa442f84396ad081ec1e61657e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3f231c35b4a10a3e3e2188bc377e56d1de4d67ca"
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"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"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "3f231c35b4a10a3e3e2188bc377e56d1de4d67ca",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f51128e06754269e3518efb3c37bfb93dde1e6e3"
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"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"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "f51128e06754269e3518efb3c37bfb93dde1e6e3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "79a5f19ec8642f46ea2c6525df20c26fd2ca9cfc"
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "79a5f19ec8642f46ea2c6525df20c26fd2ca9cfc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1e9c6be37ab1267bf448d0475d8db90a8e60afd1"
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"this": {
"start": [
1,
1
],
"name": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "1e9c6be37ab1267bf448d0475d8db90a8e60afd1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fac60fda4353135fc163df6a61e7caff13930fc7"
}]