1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00
semantic/test/corpus/diff-summaries/javascript/function.json

287 lines
8.6 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-function-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "3c4b000068a904a4b9cf0b1aa74dd6f5cb36480d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "f3295f9af872c1881875b6ca32057b10dbc63da1"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-replacement-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "f3295f9af872c1881875b6ca32057b10dbc63da1",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "2b989cfac72fd51f34b801c309be6f73d078500a"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-insert-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
24
],
"end": [
1,
28
]
},
{
"start": [
1,
24
],
"end": [
1,
28
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "2b989cfac72fd51f34b801c309be6f73d078500a",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "4fcdb27c1dc9a8d55a27bac58394811f0af81677"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
24
],
"end": [
1,
28
]
},
{
"start": [
1,
24
],
"end": [
1,
28
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "4fcdb27c1dc9a8d55a27bac58394811f0af81677",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "1572ad2e913ce289c4fc61a75255a0f868cb656d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-replacement-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "1572ad2e913ce289c4fc61a75255a0f868cb656d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "e7dc8ed10c2531a1f9a4a985c188ea063491825d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "e7dc8ed10c2531a1f9a4a985c188ea063491825d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "5259b7b74b92248088c0c6181d590814584f976e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-function-delete-rest-test",
"expectedResult": {
"changes": {
"function.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
31
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted an anonymous(arg1, arg2) function"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"function.js"
],
2016-10-14 19:12:38 +03:00
"sha1": "5259b7b74b92248088c0c6181d590814584f976e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-10-14 19:12:38 +03:00
"sha2": "b458b653eebcdb30f6c37005daf35b1b07b304e8"
2016-10-11 18:12:20 +03:00
}]