Home
last modified time | relevance | path

Searched refs:TestStatement (Results 1 – 6 of 6) sorted by relevance

/art/tools/checker/match/
Dfile.py19 from file_format.checker.struct import TestStatement
87 if variant is TestStatement.Variant.IF:
89 elif variant is TestStatement.Variant.ELIF:
91 elif variant is TestStatement.Variant.ELSE:
94 assert variant is TestStatement.Variant.FI
221 assert statement.variant == TestStatement.Variant.DAG
239 assert statement.variant == TestStatement.Variant.NOT
266 if self.last_variant not in [TestStatement.Variant.IN_ORDER, TestStatement.Variant.NEXT_LINE]:
286 if variant in [TestStatement.Variant.IF,
287 TestStatement.Variant.ELIF,
[all …]
Dline.py16 from file_format.checker.struct import TestExpression, TestStatement
95 assert checker_line.variant != TestStatement.Variant.EVAL
Dtest.py18 from file_format.checker.struct import CheckerFile, TestCase, TestStatement
33 return parse_checker_statement(test_case, checker_string, TestStatement.Variant.IN_ORDER, 0)
/art/tools/checker/file_format/checker/
Dtest.py19 from file_format.checker.struct import CheckerFile, TestCase, TestStatement, TestExpression
205 statement = TestStatement(test_case, variant, content, 0)
230 [("Example Group", [("foo", TestStatement.Variant.IN_ORDER),
231 ("bar", TestStatement.Variant.IN_ORDER)])])
243 [("Example Group1", [("foo", TestStatement.Variant.IN_ORDER),
244 ("bar", TestStatement.Variant.IN_ORDER)]),
245 ("Example Group2", [("abc", TestStatement.Variant.IN_ORDER),
246 ("def", TestStatement.Variant.IN_ORDER)])])
265 [("Example Group", [("foo1", TestStatement.Variant.IN_ORDER),
266 ("foo2", TestStatement.Variant.IN_ORDER),
[all …]
Dstruct.py69 class TestStatement(PrintableMixin): class
90 return self.variant in [TestStatement.Variant.IN_ORDER,
91 TestStatement.Variant.NEXT_LINE,
92 TestStatement.Variant.DAG,
93 TestStatement.Variant.NOT]
96 return self.variant in [TestStatement.Variant.EVAL,
97 TestStatement.Variant.IF,
98 TestStatement.Variant.ELIF]
101 return self.variant in [TestStatement.Variant.ELSE,
102 TestStatement.Variant.FI]
[all …]
Dparser.py18 from file_format.checker.struct import CheckerFile, TestCase, TestStatement, TestExpression
99 return (plain_line, TestStatement.Variant.IN_ORDER, line_no), None, None
104 return (next_line, TestStatement.Variant.NEXT_LINE, line_no), None, None
109 return (dag_line, TestStatement.Variant.DAG, line_no), None, None
114 return (not_line, TestStatement.Variant.NOT, line_no), None, None
119 return (eval_line, TestStatement.Variant.EVAL, line_no), None, None
125 return (if_line, TestStatement.Variant.IF, line_no), None, None
130 return (elif_line, TestStatement.Variant.ELIF, line_no), None, None
135 return (else_line, TestStatement.Variant.ELSE, line_no), None, None
140 return (fi_line, TestStatement.Variant.FI, line_no), None, None
[all …]