1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 16:02:43 +03:00
semantic/test/corpus/diff-summaries/javascript/named-function.json

445 lines
15 KiB
JSON
Raw Normal View History

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