1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00
semantic/test/corpus/diff-summaries/javascript/named-function.json

445 lines
15 KiB
JSON

[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "4f10daadd1f0292f7909951043926535151b0c5d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f19ad72631f7bff25fda760b486a1dc7820b7b77"
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"filepath": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Added the 'anotherFunction' function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "named-function.js",
"end": [
2,
42
]
}
},
"summary": "Added the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "f19ad72631f7bff25fda760b486a1dc7820b7b77",
"gitDir": "test/corpus/repos/javascript",
"sha2": "eb28c552425afa7b5830c5358de72056ed48c090"
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"filepath": "named-function.js",
"end": [
1,
25
]
},
{
"start": [
1,
10
],
"filepath": "named-function.js",
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'anotherFunction' identifier with the 'myFunction' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
21
],
"filepath": "named-function.js",
"end": [
1,
25
]
}
},
"summary": "Added the 'arg1' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
27
],
"filepath": "named-function.js",
"end": [
1,
31
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
35
],
"filepath": "named-function.js",
"end": [
1,
39
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
30
],
"filepath": "named-function.js",
"end": [
1,
43
]
}
},
"summary": "Deleted the 'false' return statement in the myFunction function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "eb28c552425afa7b5830c5358de72056ed48c090",
"gitDir": "test/corpus/repos/javascript",
"sha2": "08011f3d6953e93599cb6242aa603cc3f2245824"
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"filepath": "named-function.js",
"end": [
1,
20
]
},
{
"start": [
1,
10
],
"filepath": "named-function.js",
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'myFunction' identifier with the 'anotherFunction' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
21
],
"filepath": "named-function.js",
"end": [
1,
25
]
}
},
"summary": "Deleted the 'arg1' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
27
],
"filepath": "named-function.js",
"end": [
1,
31
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
1,
30
],
"filepath": "named-function.js",
"end": [
1,
43
]
}
},
"summary": "Added the 'false' return statement in the anotherFunction function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
1,
35
],
"filepath": "named-function.js",
"end": [
1,
39
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "08011f3d6953e93599cb6242aa603cc3f2245824",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ebed4cdaaa3d19dd0012db680fe261e0006c5c2a"
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"filepath": "named-function.js",
"end": [
2,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"filepath": "named-function.js",
"end": [
2,
45
]
}
},
"summary": "Added the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "ebed4cdaaa3d19dd0012db680fe261e0006c5c2a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cd4d6840a6128e3ae540047e6a709d5d0b0a5c47"
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "named-function.js",
"end": [
1,
42
]
}
},
"summary": "Deleted the 'myFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "cd4d6840a6128e3ae540047e6a709d5d0b0a5c47",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f766ee585573125a533e1bd46f74f83cae95793c"
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"filepath": "named-function.js",
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function",
"tag": "JSONSummary"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "f766ee585573125a533e1bd46f74f83cae95793c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8b63530b6848d8ef3e2e5b0cb37c9d6372fdac1b"
}]