Lines Matching refs:variables
26 def __init__(self, assertion, lineNo, variables): argument
29 self.variables = variables
46 def findMatchingLine(assertion, c1Pass, scope, variables, excludeLines=[]): argument
59 newVariables = MatchLines(assertion, c1Pass.body[i], variables)
62 raise MatchFailedException(assertion, scope.start, variables)
64 def matchDagGroup(assertions, c1Pass, scope, variables): argument
78 match = findMatchingLine(assertion, c1Pass, scope, variables, matchedLines)
79 variables = match.variables
83 return MatchInfo(MatchScope(min(matchedLines), max(matchedLines)), variables)
85 def testNotGroup(assertions, c1Pass, scope, variables): argument
95 if MatchLines(assertion, line, variables) is not None:
96 raise MatchFailedException(assertion, i, variables)
98 def testEvalGroup(assertions, scope, variables): argument
100 if not EvaluateLine(assertion, variables):
101 raise MatchFailedException(assertion, scope.start, variables)
111 variables = ImmutableDict()
135 match = findMatchingLine(assertionGroup[0], c1Pass, scope, variables)
140 match = findMatchingLine(assertionGroup[0], c1Pass, scope, variables)
144 match = matchDagGroup(assertionGroup, c1Pass, scope, variables)
148 testEvalGroup(assertionGroup, scope, variables)
155 testNotGroup(pendingNotAssertions, c1Pass, scope, variables)
161 variables = match.variables
189 Logger.testFailed(msg, e.assertion, e.variables)