Searched refs:TestExpression (Results 1 – 4 of 4) sorted by relevance
/art/tools/checker/file_format/checker/ |
D | struct.py | 104 assert isinstance(new_expression, TestExpression) 106 if new_expression.variant == TestExpression.Variant.VarDef: 114 if expression.variant == TestExpression.Variant.Separator: 126 class TestExpression(EqualityMixin, PrintableMixin): class 159 return TestExpression(TestExpression.Variant.Separator, None, None) 163 return TestExpression(TestExpression.Variant.PlainText, None, text) 167 return TestExpression(TestExpression.Variant.Pattern, None, re.escape(text)) 171 return TestExpression(TestExpression.Variant.Pattern, None, pattern) 175 assert re.match(TestExpression.Regex.rName, name) 176 return TestExpression(TestExpression.Variant.VarRef, name, None) [all …]
|
D | test.py | 20 from file_format.checker.struct import CheckerFile, TestCase, TestStatement, TestExpression 96 self.assertEqual(self.parseExpression(string), TestExpression.createPatternFromPlainText(text)) 99 self.assertEqual(self.parseExpression(string), TestExpression.createPattern(pattern)) 102 self.assertEqual(self.parseExpression(string), TestExpression.createVariableReference(name)) 106 TestExpression.createVariableDefinition(name, pattern)) 171 self.assertVariantNotEqual("<<>>", TestExpression.Variant.VarRef) 172 self.assertVariantNotEqual("<<:>>", TestExpression.Variant.VarDef) 175 self.assertVariantNotEqual("<<0ABC>>", TestExpression.Variant.VarRef) 176 self.assertVariantNotEqual("<<AB=C>>", TestExpression.Variant.VarRef) 177 self.assertVariantNotEqual("<<ABC=>>", TestExpression.Variant.VarRef) [all …]
|
D | parser.py | 18 from file_format.checker.struct import CheckerFile, TestCase, TestStatement, TestExpression 172 matchPattern = re.search(TestExpression.Regex.regexPattern, line) 173 matchVariableDefinition = re.search(TestExpression.Regex.regexVariableDefinition, line) 174 matchVariableReference = re.search(TestExpression.Regex.regexVariableReference, line) 182 statement.addExpression(TestExpression.createSeparator()) 187 statement.addExpression(TestExpression.createPattern(pattern)) 192 statement.addExpression(TestExpression.createVariableReference(name)) 199 statement.addExpression(TestExpression.createVariableDefinition(name, body)) 212 statement.addExpression(TestExpression.createPlainText(text)) 214 statement.addExpression(TestExpression.createPatternFromPlainText(text))
|
/art/tools/checker/match/ |
D | line.py | 16 from file_format.checker.struct import TestExpression, TestStatement 29 if expression.variant == TestExpression.Variant.Separator: 53 if expression.variant == TestExpression.Variant.VarRef: 65 if expression.variant == TestExpression.Variant.VarDef: 106 if expression.variant == TestExpression.Variant.PlainText: 109 assert expression.variant == TestExpression.Variant.VarRef
|