2016-10-28 04:46:12 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-false-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
|
|
|
|
"8a63946258eddc17ba51e2165b17aa50e3ebc9fa"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "ccb6656d876093679f7ccc49112a0e8f70c5461f",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "19fc441dd6a597646a3a67d418218e3911254b22"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-false-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"8a63946258eddc17ba51e2165b17aa50e3ebc9fa",
|
|
|
|
"86574b160b9b16b2cac96835fe478e05aa257d42"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "19fc441dd6a597646a3a67d418218e3911254b22",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "cd4b2f08e7025c7ed4bb47a917de4f23903d09e3"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-false-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"86574b160b9b16b2cac96835fe478e05aa257d42",
|
|
|
|
"7bae7c53c216d4d18782c027934c3d80e003de0e"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "cd4b2f08e7025c7ed4bb47a917de4f23903d09e3",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "b26e1049ab107ab138f6e431d1ce1d3acbd6c5ce"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-false-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"7bae7c53c216d4d18782c027934c3d80e003de0e",
|
|
|
|
"86574b160b9b16b2cac96835fe478e05aa257d42"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "b26e1049ab107ab138f6e431d1ce1d3acbd6c5ce",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "b8f61c4532392cff5ba2683d0d4928158f8220da"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-false-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "insert",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
28,
|
|
|
|
28
|
|
|
|
],
|
|
|
|
"number": 4
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"86574b160b9b16b2cac96835fe478e05aa257d42",
|
|
|
|
"85b5be918c88b57b1186a126d787a5e8971480d5"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "b8f61c4532392cff5ba2683d0d4928158f8220da",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "8894f33c8fe1aeff3306d59fd3739804ea1ef578"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-false-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "ExpressionStatements",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
5
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
6
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
7
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
21,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"number": 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": false,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"85b5be918c88b57b1186a126d787a5e8971480d5",
|
|
|
|
"1f328b3bd0042696e3a2181ff33dd4abb9103b2d"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "8894f33c8fe1aeff3306d59fd3739804ea1ef578",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "89c5747e19c2fc29775206433549620d142c5685"
|
2016-10-28 04:46:12 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-false-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"rows": [
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Return",
|
|
|
|
"children": [
|
|
|
|
{
|
|
|
|
"category": "Boolean",
|
|
|
|
"range": [
|
|
|
|
7,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
13
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
0,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
"terms": [
|
|
|
|
{
|
|
|
|
"category": "Program",
|
|
|
|
"children": [],
|
|
|
|
"patch": "delete",
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"hasChanges": true,
|
|
|
|
"range": [
|
|
|
|
14,
|
|
|
|
14
|
|
|
|
],
|
|
|
|
"number": 2
|
|
|
|
}
|
|
|
|
]
|
|
|
|
],
|
|
|
|
"paths": [
|
|
|
|
"false.js",
|
|
|
|
"false.js"
|
|
|
|
],
|
|
|
|
"oids": [
|
|
|
|
"1f328b3bd0042696e3a2181ff33dd4abb9103b2d",
|
|
|
|
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"false.js"
|
|
|
|
],
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha1": "89c5747e19c2fc29775206433549620d142c5685",
|
2016-10-28 04:46:12 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-01 18:03:25 +03:00
|
|
|
"sha2": "e2a6c3403e1b06dd257e3ca21d012b9db90f5fef"
|
2016-10-28 04:46:12 +03:00
|
|
|
}]
|