Searched refs:TestExpression (Results 1 – 4 of 4) sorted by relevance
/art/tools/checker/file_format/checker/ |
D | struct.py | 96 assert isinstance(new_expression, TestExpression) 98 if new_expression.variant == TestExpression.Variant.VarDef: 106 if expression.variant == TestExpression.Variant.Separator: 118 class TestExpression(EqualityMixin, PrintableMixin): class 151 return TestExpression(TestExpression.Variant.Separator, None, None) 155 return TestExpression(TestExpression.Variant.PlainText, None, text) 159 return TestExpression(TestExpression.Variant.Pattern, None, re.escape(text)) 163 return TestExpression(TestExpression.Variant.Pattern, None, pattern) 167 assert re.match(TestExpression.Regex.rName, name) 168 return TestExpression(TestExpression.Variant.VarRef, name, None) [all …]
|
D | test.py | 20 from file_format.checker.struct import CheckerFile, TestCase, TestAssertion, 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, TestAssertion, TestExpression 122 matchPattern = re.search(TestExpression.Regex.regexPattern, line) 123 matchVariableDefinition = re.search(TestExpression.Regex.regexVariableDefinition, line) 124 matchVariableReference = re.search(TestExpression.Regex.regexVariableReference, line) 132 assertion.addExpression(TestExpression.createSeparator()) 137 assertion.addExpression(TestExpression.createPattern(pattern)) 142 assertion.addExpression(TestExpression.createVariableReference(name)) 149 assertion.addExpression(TestExpression.createVariableDefinition(name, body)) 162 assertion.addExpression(TestExpression.createPlainText(text)) 164 assertion.addExpression(TestExpression.createPatternFromPlainText(text))
|
/art/tools/checker/match/ |
D | line.py | 16 from file_format.checker.struct import TestExpression, TestAssertion 28 if expression.variant == TestExpression.Variant.Separator: 52 if expression.variant == TestExpression.Variant.VarRef: 64 if expression.variant == TestExpression.Variant.VarDef: 105 if expression.variant == TestExpression.Variant.PlainText: 108 assert expression.variant == TestExpression.Variant.VarRef
|