1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 05:41:54 +03:00
semantic/test/corpus/diff-summaries/javascript/function.json
2016-10-11 16:18:26 -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": "9cd120dd3b152d83f8eea69dfe22940d1acbf177",
"gitDir": "test/corpus/repos/javascript",
"sha2": "654ce2cc1260f48fb82edbd0cc5926f11c877700"
}
,{
"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": "654ce2cc1260f48fb82edbd0cc5926f11c877700",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d935758b74f8e47e1475010591b39e545d5ecc7a"
}
,{
"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": "d935758b74f8e47e1475010591b39e545d5ecc7a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8c1abbc8823d22df989efd04e0bcc27c2342b00d"
}
,{
"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": "8c1abbc8823d22df989efd04e0bcc27c2342b00d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0dbbe59af8673a1a5d7ef30f3feed1d050360f91"
}
,{
"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": "0dbbe59af8673a1a5d7ef30f3feed1d050360f91",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aae7da5266e45976f3617b3d9068bbba2b814869"
}
,{
"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": "aae7da5266e45976f3617b3d9068bbba2b814869",
"gitDir": "test/corpus/repos/javascript",
"sha2": "183393122ec9e9b0bc8b67482c0435aec3fa76a6"
}
,{
"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": "183393122ec9e9b0bc8b67482c0435aec3fa76a6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f0f1ee84b62e5f9e91523c1e29c3469ab06fefdf"
}]