1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/json/javascript/relational-operator.json
2016-10-27 20:46:12 -05:00

1744 lines
70 KiB
JSON

[{
"testCaseDescription": "javascript-relational-operator-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"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": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391",
"4021910f3d29e1915cf66201d9558dfa1b19fa8d"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "328d6e6161cd9f4ec455b454f124edc5c84c26b0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "36f86e076fbc93227e4237cdd050b0919936958c"
}
,{
"testCaseDescription": "javascript-relational-operator-replacement-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"patch": "insert",
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
12,
13
]
}
],
"range": [
8,
13
]
}
],
"patch": "insert",
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"hasChanges": true,
"range": [
8,
15
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
0,
5
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"hasChanges": false,
"range": [
0,
7
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
},
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
15,
21
]
}
],
"range": [
15,
22
]
}
],
"hasChanges": false,
"range": [
15,
22
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
7,
7
]
}
],
"hasChanges": false,
"range": [
7,
7
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
22,
22
]
}
],
"hasChanges": false,
"range": [
22,
22
],
"number": 4
}
]
],
"paths": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"4021910f3d29e1915cf66201d9558dfa1b19fa8d",
"dbef0501d91f214d6bb08756d1447824b8eccd54"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "36f86e076fbc93227e4237cdd050b0919936958c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3781f3de0dc259e8343016ddf0f6f434c5138dc8"
}
,{
"testCaseDescription": "javascript-relational-operator-delete-insert-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": false,
"range": [
0,
8
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
0,
5
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"hasChanges": false,
"range": [
0,
7
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
12,
13
]
}
],
"range": [
8,
13
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"hasChanges": false,
"range": [
8,
15
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Identifier",
"range": [
11,
12
]
}
],
"range": [
7,
12
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
14
]
}
],
"hasChanges": false,
"range": [
7,
14
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
},
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
15,
21
]
}
],
"range": [
15,
22
]
}
],
"hasChanges": false,
"range": [
15,
22
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
14,
15
]
},
{
"category": "Identifier",
"range": [
18,
19
]
}
],
"range": [
14,
19
]
}
],
"range": [
14,
20
]
}
],
"range": [
14,
21
]
}
],
"hasChanges": false,
"range": [
14,
21
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
22,
22
]
}
],
"hasChanges": false,
"range": [
22,
22
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
21,
21
]
}
],
"hasChanges": false,
"range": [
21,
21
],
"number": 4
}
]
],
"paths": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"dbef0501d91f214d6bb08756d1447824b8eccd54",
"a9ff7f65a167feb135388b62a3375a6e7d235472"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "3781f3de0dc259e8343016ddf0f6f434c5138dc8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ae7746874dfe685f45a19a29f98e101290ac4101"
}
,{
"testCaseDescription": "javascript-relational-operator-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
0,
5
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"hasChanges": false,
"range": [
0,
7
],
"number": 1
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": false,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Identifier",
"range": [
11,
12
]
}
],
"range": [
7,
12
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
14
]
}
],
"hasChanges": false,
"range": [
7,
14
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
12,
13
]
}
],
"range": [
8,
13
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"hasChanges": false,
"range": [
8,
15
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
14,
15
]
},
{
"category": "Identifier",
"range": [
18,
19
]
}
],
"range": [
14,
19
]
}
],
"range": [
14,
20
]
}
],
"range": [
14,
21
]
}
],
"hasChanges": false,
"range": [
14,
21
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
},
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
15,
21
]
}
],
"range": [
15,
22
]
}
],
"hasChanges": false,
"range": [
15,
22
],
"number": 3
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
21,
21
]
}
],
"hasChanges": false,
"range": [
21,
21
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
22,
22
]
}
],
"hasChanges": false,
"range": [
22,
22
],
"number": 4
}
]
],
"paths": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"a9ff7f65a167feb135388b62a3375a6e7d235472",
"dbef0501d91f214d6bb08756d1447824b8eccd54"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "ae7746874dfe685f45a19a29f98e101290ac4101",
"gitDir": "test/corpus/repos/javascript",
"sha2": "73d5f2d77956b8b93bb16de2c4bff05cbb1e175c"
}
,{
"testCaseDescription": "javascript-relational-operator-delete-replacement-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"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": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
8,
9
]
},
{
"category": "Identifier",
"range": [
12,
13
]
}
],
"range": [
8,
13
]
}
],
"range": [
8,
14
]
}
],
"range": [
8,
15
]
}
],
"hasChanges": false,
"range": [
8,
15
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
0,
5
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"hasChanges": false,
"range": [
0,
7
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
15,
16
]
},
{
"category": "Identifier",
"range": [
19,
20
]
}
],
"range": [
15,
20
]
}
],
"range": [
15,
21
]
}
],
"range": [
15,
22
]
}
],
"hasChanges": false,
"range": [
15,
22
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Identifier",
"range": [
12,
13
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
14
]
}
],
"range": [
7,
15
]
}
],
"hasChanges": false,
"range": [
7,
15
],
"number": 2
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
22,
22
]
}
],
"hasChanges": false,
"range": [
22,
22
],
"number": 4
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
15,
15
]
}
],
"hasChanges": false,
"range": [
15,
15
],
"number": 3
}
]
],
"paths": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"dbef0501d91f214d6bb08756d1447824b8eccd54",
"1ee42eb93693db35c67b8f9dcad91d058bbb4ba0"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "73d5f2d77956b8b93bb16de2c4bff05cbb1e175c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "fea466789e0a8b0100b2cd03093e272103f97bec"
}
,{
"testCaseDescription": "javascript-relational-operator-delete-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
4,
5
]
}
],
"range": [
0,
5
]
}
],
"patch": "delete",
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"hasChanges": true,
"range": [
0,
7
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
7,
8
]
},
{
"category": "Identifier",
"range": [
12,
13
]
}
],
"range": [
7,
13
]
}
],
"range": [
7,
14
]
}
],
"range": [
7,
15
]
}
],
"hasChanges": false,
"range": [
7,
15
],
"number": 2
},
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"range": [
0,
8
]
}
],
"hasChanges": false,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
15,
15
]
}
],
"hasChanges": false,
"range": [
15,
15
],
"number": 3
},
{
"terms": [
{
"category": "Program",
"children": [],
"range": [
8,
8
]
}
],
"hasChanges": false,
"range": [
8,
8
],
"number": 2
}
]
],
"paths": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"1ee42eb93693db35c67b8f9dcad91d058bbb4ba0",
"3be8450fc04aa724c72a21d9fa334afdaf09acac"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "fea466789e0a8b0100b2cd03093e272103f97bec",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1e34f3fabc4ebd11e1951dc4448a26b28a7a981e"
}
,{
"testCaseDescription": "javascript-relational-operator-delete-rest-test",
"expectedResult": {
"rows": [
[
{
"terms": [
{
"category": "Program",
"children": [
{
"category": "ExpressionStatements",
"children": [
{
"category": "RelationalOperator",
"children": [
{
"category": "Identifier",
"range": [
0,
1
]
},
{
"category": "Identifier",
"range": [
5,
6
]
}
],
"range": [
0,
6
]
}
],
"range": [
0,
7
]
}
],
"patch": "delete",
"range": [
0,
8
]
}
],
"hasChanges": true,
"range": [
0,
8
],
"number": 1
}
],
[
{
"terms": [
{
"category": "Program",
"children": [],
"patch": "delete",
"range": [
8,
8
]
}
],
"hasChanges": true,
"range": [
8,
8
],
"number": 2
}
]
],
"paths": [
"relational-operator.js",
"relational-operator.js"
],
"oids": [
"3be8450fc04aa724c72a21d9fa334afdaf09acac",
"e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"
]
},
"filePaths": [
"relational-operator.js"
],
"sha1": "1e34f3fabc4ebd11e1951dc4448a26b28a7a981e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8bace3fd3a38a02a008dc0731653277cf54ea3a9"
}]