Home
last modified time | relevance | path

Searched refs:assertion (Results 1 – 5 of 5) sorted by relevance

/art/tools/checker/match/
Dfile.py26 def __init__(self, assertion, lineNo, variables): argument
27 self.assertion = assertion
37 for assertion in assertions:
38 if (assertion.variant == lastVariant and
39 assertion.variant in [TestAssertion.Variant.DAG, TestAssertion.Variant.Not]):
40 splitAssertions[-1].append(assertion)
42 splitAssertions.append([assertion])
43 lastVariant = assertion.variant
46 def findMatchingLine(assertion, c1Pass, scope, variables, excludeLines=[]): argument
59 newVariables = MatchLines(assertion, c1Pass.body[i], variables)
[all …]
/art/tools/checker/file_format/checker/
Dparser.py109 assertion = TestAssertion(parent, variant, line, lineNo)
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))
165 return assertion
Dtest.py204 assertion = TestAssertion(testCase, variant, content, 0)
205 assertion.addExpression(TestExpression.createPatternFromPlainText(content))
379 assertion = testCase.assertions[0]
380 self.assertEqual(assertion.variant, TestAssertion.Variant.Eval)
381 self.assertEqual(assertion.originalText, string)
382 return assertion.expressions
387 assertion = testCase.assertions[0]
388 self.assertEqual(assertion.variant, TestAssertion.Variant.Eval)
389 self.assertEqual(assertion.originalText, text)
390 self.assertEqual(len(assertion.expressions), 1)
[all …]
/art/tools/checker/common/
Dlogger.py97 def testFailed(msg, assertion, variables): argument
99 Logger.fail(msg, assertion.fileName, assertion.lineNo, assertion.originalText, variables)
/art/tools/checker/
DREADME30 therefore create a scope within which the assertion is verified.