mirror of
https://github.com/github/semantic.git
synced 2024-12-23 06:41:45 +03:00
1336 lines
46 KiB
JSON
1336 lines
46 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-regex-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
8
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "insert",
|
|
"range": [
|
|
8,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
8,
|
|
8
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
"b3818424d73f7c45817c6f976bc00d9363144460"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "8615aeabbc013ceb15369c91accad8b1aed34016",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "851ff2101406825fac798bbf82ab4fdefc15df6c"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-replacement-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
16
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
16,
|
|
24
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
8
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
24,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
32
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
8,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
8,
|
|
8
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
32,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
32,
|
|
32
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"b3818424d73f7c45817c6f976bc00d9363144460",
|
|
"6ed4b424fdb93d355b5c6cd4180e600bfc0595de"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "851ff2101406825fac798bbf82ab4fdefc15df6c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2497bc0aa7b8e08bdda2f47b34f5187b19970e92"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-insert-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"patch": "replace",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
16
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"patch": "replace",
|
|
"range": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
8
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
16,
|
|
24
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
8,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
8,
|
|
16
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
24,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
32
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
16,
|
|
24
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
32,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
32,
|
|
32
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
24,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
24
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"6ed4b424fdb93d355b5c6cd4180e600bfc0595de",
|
|
"abb87ec8eee8efba03b51ea7c72bd7006ced248d"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "2497bc0aa7b8e08bdda2f47b34f5187b19970e92",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cf71ff3f60e50619d0f59e730c1473e891ff4477"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"patch": "replace",
|
|
"range": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
8
|
|
],
|
|
"number": 1
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"patch": "replace",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
16
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
8,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
8,
|
|
16
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
16,
|
|
24
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
16,
|
|
24
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
24,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
32
|
|
],
|
|
"number": 3
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
24,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
24
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
32,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
32,
|
|
32
|
|
],
|
|
"number": 4
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"abb87ec8eee8efba03b51ea7c72bd7006ced248d",
|
|
"6ed4b424fdb93d355b5c6cd4180e600bfc0595de"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "cf71ff3f60e50619d0f59e730c1473e891ff4477",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "82cf310ffbb880b60db892e86a68fcd87123bcbb"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-replacement-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
16
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
16,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
16,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
16,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
16,
|
|
24
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
24,
|
|
30
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
31
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
24,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
32
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
8
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"patch": "insert",
|
|
"range": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
8,
|
|
24
|
|
],
|
|
"number": 2
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
32,
|
|
32
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
32,
|
|
32
|
|
],
|
|
"number": 4
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
24,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
24
|
|
],
|
|
"number": 3
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"6ed4b424fdb93d355b5c6cd4180e600bfc0595de",
|
|
"9f57e9197e0a21f3959215851536cad98f8a0b93"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "82cf310ffbb880b60db892e86a68fcd87123bcbb",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "11943fd306cae6933f6842179f86611ce88fcf90"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
6
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
7
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
8
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
8
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
8,
|
|
22
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
23
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
8,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
8,
|
|
24
|
|
],
|
|
"number": 2
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
0,
|
|
16
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
24,
|
|
24
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
24,
|
|
24
|
|
],
|
|
"number": 3
|
|
},
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"range": [
|
|
16,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": false,
|
|
"range": [
|
|
16,
|
|
16
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"9f57e9197e0a21f3959215851536cad98f8a0b93",
|
|
"9b04194db65414727487376cf72803fa747f0939"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "11943fd306cae6933f6842179f86611ce88fcf90",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0060fa38615fb7d26f9c05334637b4d029aac4df"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-regex-delete-rest-test",
|
|
"expectedResult": {
|
|
"rows": [
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [
|
|
{
|
|
"category": "ExpressionStatements",
|
|
"children": [
|
|
{
|
|
"category": "Regex",
|
|
"range": [
|
|
0,
|
|
14
|
|
]
|
|
}
|
|
],
|
|
"range": [
|
|
0,
|
|
15
|
|
]
|
|
}
|
|
],
|
|
"patch": "delete",
|
|
"range": [
|
|
0,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
0,
|
|
16
|
|
],
|
|
"number": 1
|
|
}
|
|
],
|
|
[
|
|
{
|
|
"terms": [
|
|
{
|
|
"category": "Program",
|
|
"children": [],
|
|
"patch": "delete",
|
|
"range": [
|
|
16,
|
|
16
|
|
]
|
|
}
|
|
],
|
|
"hasChanges": true,
|
|
"range": [
|
|
16,
|
|
16
|
|
],
|
|
"number": 2
|
|
}
|
|
]
|
|
],
|
|
"paths": [
|
|
"regex.js",
|
|
"regex.js"
|
|
],
|
|
"oids": [
|
|
"9b04194db65414727487376cf72803fa747f0939",
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
]
|
|
},
|
|
"filePaths": [
|
|
"regex.js"
|
|
],
|
|
"sha1": "0060fa38615fb7d26f9c05334637b4d029aac4df",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d824e40ab47346b4bee693f3be849e2f837bfea0"
|
|
}]
|