1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/function.json
2016-10-14 12:19:31 -04:00

287 lines
8.6 KiB
JSON

[{
"testCaseDescription": "javascript-function-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "bf731f26dbd512f6c40017aa952c201958a1bb9f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6e1d89cdd52744f60efcaa192de92833a9e20109"
}
,{
"testCaseDescription": "javascript-function-replacement-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "6e1d89cdd52744f60efcaa192de92833a9e20109",
"gitDir": "test/corpus/repos/javascript",
"sha2": "60ad5ad54b89671e79621576a1c62253c99f32c1"
}
,{
"testCaseDescription": "javascript-function-delete-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
28
]
},
{
"start": [
1,
24
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "60ad5ad54b89671e79621576a1c62253c99f32c1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5652e2a52d69aea759f570b8429ca12876dc8b83"
}
,{
"testCaseDescription": "javascript-function-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"replace": [
{
"start": [
1,
24
],
"end": [
1,
28
]
},
{
"start": [
1,
24
],
"end": [
1,
28
]
}
]
},
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "5652e2a52d69aea759f570b8429ca12876dc8b83",
"gitDir": "test/corpus/repos/javascript",
"sha2": "35d029f148f3f3a0859f15ab6b01764d3da36e60"
}
,{
"testCaseDescription": "javascript-function-delete-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
31
]
}
},
"summary": "Added an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "35d029f148f3f3a0859f15ab6b01764d3da36e60",
"gitDir": "test/corpus/repos/javascript",
"sha2": "12428d9de7abb4173ddebd3f6fb5c37945c7b547"
}
,{
"testCaseDescription": "javascript-function-delete-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "12428d9de7abb4173ddebd3f6fb5c37945c7b547",
"gitDir": "test/corpus/repos/javascript",
"sha2": "67f9b43d4820aa5c4b3c511fc3d8203b648e7abd"
}
,{
"testCaseDescription": "javascript-function-delete-rest-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
31
]
}
},
"summary": "Deleted an anonymous(arg1, arg2) function"
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
"sha1": "67f9b43d4820aa5c4b3c511fc3d8203b648e7abd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "97fd068687478c18e12819a060dd676c736e57e6"
}]