mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.6 KiB
JSON
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": "86bc815338f38ac0b5c22bc2d78e64d445a1ee9d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "676181036c80de93e3140524f333aa7eaccb1f74"
|
|
}
|
|
,{
|
|
"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": "676181036c80de93e3140524f333aa7eaccb1f74",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "6e4ebf310243181f0ec31130e3e5ad92482b5ad8"
|
|
}
|
|
,{
|
|
"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": "6e4ebf310243181f0ec31130e3e5ad92482b5ad8",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "112acd61210c225ad50f35e630b61ebd9ff2f765"
|
|
}
|
|
,{
|
|
"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": "112acd61210c225ad50f35e630b61ebd9ff2f765",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c5dc18b838db9786a9f78be8f8ed28a17996d4cc"
|
|
}
|
|
,{
|
|
"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": "c5dc18b838db9786a9f78be8f8ed28a17996d4cc",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "dc45f0f86adfa4b2cfe134494fbc699034d75447"
|
|
}
|
|
,{
|
|
"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": "dc45f0f86adfa4b2cfe134494fbc699034d75447",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "eb0c021da284ad13230fd8e4491e527bbca579ba"
|
|
}
|
|
,{
|
|
"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": "eb0c021da284ad13230fd8e4491e527bbca579ba",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "af61bc777c8d895654d3d11c775df42353147dd6"
|
|
}]
|