mirror of
https://github.com/github/semantic.git
synced 2024-12-21 13:51:44 +03:00
309 lines
9.6 KiB
JSON
309 lines
9.6 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-function-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "0921c7be9afb30bdf6fa3861d12c20a87ae67736",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "c14206873e94c5b71dcaef2a68cc885f9fe02438"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "c14206873e94c5b71dcaef2a68cc885f9fe02438",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "be57190fb1f51d913dfeb73c34d00dc57fcb1872"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'arg1' identifier with the 'arg2' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "be57190fb1f51d913dfeb73c34d00dc57fcb1872",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "fbadfc3fbbde8967568595bb4675ddc476126daf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
24
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'arg2' identifier with the 'arg1' identifier",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "fbadfc3fbbde8967568595bb4675ddc476126daf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "57f9bf7c0a45a4f94d567465b6b977343d32f50b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
2,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "57f9bf7c0a45a4f94d567465b6b977343d32f50b",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d35302be0f16f464cc4d0097a751e65d00abc9a1"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "d35302be0f16f464cc4d0097a751e65d00abc9a1",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0e0a3468af5fc91169f996a1334b146594d1e795"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-function-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"function.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "function.js",
|
|
"end": [
|
|
1,
|
|
31
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted an anonymous(arg1, arg2) function",
|
|
"tag": "JSONSummary"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"function.js"
|
|
],
|
|
"sha1": "0e0a3468af5fc91169f996a1334b146594d1e795",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2327a0433e3123ddf19226ee5172c928f24b3af1"
|
|
}]
|