1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/test/corpus/diff-summaries/javascript/named-function.json
2016-10-11 11:26:57 -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": "5921bfd9de54f2a9868741666cba1c6fb5c4487a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ed8f5dca6d1d96ef2b296bd5df98404d1b66c897"
}
,{
"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": "ed8f5dca6d1d96ef2b296bd5df98404d1b66c897",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4222bcfe67238cc7af44c45f6ec0a142cfa17c67"
}
,{
"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": "4222bcfe67238cc7af44c45f6ec0a142cfa17c67",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bc86a7cba72eea905c0d8c44adb3b4486b0a6a82"
}
,{
"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": "bc86a7cba72eea905c0d8c44adb3b4486b0a6a82",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f966010b747f91901e7aa9baad0cc7f1b6eef9ef"
}
,{
"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": "f966010b747f91901e7aa9baad0cc7f1b6eef9ef",
"gitDir": "test/corpus/repos/javascript",
"sha2": "67fb491a47d084d91c43b668088e5dca89cc8a75"
}
,{
"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": "67fb491a47d084d91c43b668088e5dca89cc8a75",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d069d29ec02721e8951777c1a746b9717e2a0385"
}
,{
"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": "d069d29ec02721e8951777c1a746b9717e2a0385",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0823b029fb4c9f6bd2d8197f3f0682bc2ddd5445"
}]