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
2016-11-01 10:03:25 -05:00

407 lines
13 KiB
JSON

[{
"testCaseDescription": "javascript-named-function-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Added the 'myFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "437d13155925d96902bc67c5d88d607d97762adf",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6cd566b50dac1a965d30e07f4df3cfb6a5b82ceb"
}
,{
"testCaseDescription": "javascript-named-function-replacement-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Added the 'anotherFunction' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Added the 'myFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "6cd566b50dac1a965d30e07f4df3cfb6a5b82ceb",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7a7e01292865470514c072bb9c4f104c27c45f78"
}
,{
"testCaseDescription": "javascript-named-function-delete-insert-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
25
]
},
{
"start": [
1,
10
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'anotherFunction' identifier with the 'myFunction' identifier in the myFunction function"
},
{
"span": {
"insert": {
"start": [
1,
21
],
"end": [
1,
25
]
}
},
"summary": "Added the 'arg1' identifier in the myFunction function"
},
{
"span": {
"insert": {
"start": [
1,
27
],
"end": [
1,
31
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function"
},
{
"span": {
"insert": {
"start": [
1,
35
],
"end": [
1,
39
]
}
},
"summary": "Added the 'arg2' identifier in the myFunction function"
},
{
"span": {
"delete": {
"start": [
1,
30
],
"end": [
1,
43
]
}
},
"summary": "Deleted the 'false' return statement in the myFunction function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "7a7e01292865470514c072bb9c4f104c27c45f78",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0dcb7d069e3c25a64997ec5a0aae69c7326c3afd"
}
,{
"testCaseDescription": "javascript-named-function-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"replace": [
{
"start": [
1,
10
],
"end": [
1,
20
]
},
{
"start": [
1,
10
],
"end": [
1,
25
]
}
]
},
"summary": "Replaced the 'myFunction' identifier with the 'anotherFunction' identifier in the anotherFunction function"
},
{
"span": {
"delete": {
"start": [
1,
21
],
"end": [
1,
25
]
}
},
"summary": "Deleted the 'arg1' identifier in the anotherFunction function"
},
{
"span": {
"delete": {
"start": [
1,
27
],
"end": [
1,
31
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function"
},
{
"span": {
"insert": {
"start": [
1,
30
],
"end": [
1,
43
]
}
},
"summary": "Added the 'false' return statement in the anotherFunction function"
},
{
"span": {
"delete": {
"start": [
1,
35
],
"end": [
1,
39
]
}
},
"summary": "Deleted the 'arg2' identifier in the anotherFunction function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "0dcb7d069e3c25a64997ec5a0aae69c7326c3afd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1cb329c5a156713abab6084c18234ca7d7344b45"
}
,{
"testCaseDescription": "javascript-named-function-delete-replacement-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
42
]
}
},
"summary": "Deleted the 'myFunction' function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
45
]
}
},
"summary": "Added the 'anotherFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "1cb329c5a156713abab6084c18234ca7d7344b45",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a1a233d56416a2ca9c51276a1c9f05a6540037c3"
}
,{
"testCaseDescription": "javascript-named-function-delete-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
42
]
}
},
"summary": "Deleted the 'myFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "a1a233d56416a2ca9c51276a1c9f05a6540037c3",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5cd383e1c4c3e1e1177a5242f5815e9a4078d8bc"
}
,{
"testCaseDescription": "javascript-named-function-delete-rest-test",
"expectedResult": {
"changes": {
"named-function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
45
]
}
},
"summary": "Deleted the 'anotherFunction' function"
}
]
},
"errors": {}
},
"filePaths": [
"named-function.js"
],
"sha1": "5cd383e1c4c3e1e1177a5242f5815e9a4078d8bc",
"gitDir": "test/corpus/repos/javascript",
"sha2": "00c3afcb0bf345232b8117cd6726492a096d4c5a"
}]