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-10-13 17:58:17 -04: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": "4a25f7035e407688dff7b4e8cd3d52602238e8b0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e59003189e36415534e9ce780e67ccfc242aefff"
}
,{
"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": "e59003189e36415534e9ce780e67ccfc242aefff",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8547cc20e8eb5ed13a426cd49f9489f12598a99c"
}
,{
"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": "8547cc20e8eb5ed13a426cd49f9489f12598a99c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bf69b8e39afdf67bc8b02278c618e4c6a1e2ac2e"
}
,{
"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": "bf69b8e39afdf67bc8b02278c618e4c6a1e2ac2e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "c76e95f11b26453033aa4a4bb21f83ca25a6237f"
}
,{
"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": "c76e95f11b26453033aa4a4bb21f83ca25a6237f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "46ee10fcd04b097f55fdeb905ca110e8807b8480"
}
,{
"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": "46ee10fcd04b097f55fdeb905ca110e8807b8480",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0ec3cd9bb1f80ab6e6b0fd667f13cbe553d6862f"
}
,{
"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": "0ec3cd9bb1f80ab6e6b0fd667f13cbe553d6862f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a3eba089d07ab4c4a40ef070f412f8ff0f6a63c5"
}]