Lines Matching refs:scope
46 def findMatchingLine(assertion, c1Pass, scope, variables, excludeLines=[]): argument
57 for i in range(scope.start, scope.end):
62 raise MatchFailedException(assertion, scope.start, variables)
64 def matchDagGroup(assertions, c1Pass, scope, variables): argument
78 match = findMatchingLine(assertion, c1Pass, scope, variables, matchedLines)
80 assert match.scope.start == match.scope.end
81 assert match.scope.start not in matchedLines
82 matchedLines.append(match.scope.start)
85 def testNotGroup(assertions, c1Pass, scope, variables): argument
91 for i in range(scope.start, scope.end):
98 def testEvalGroup(assertions, scope, variables): argument
101 raise MatchFailedException(assertion, scope.start, variables)
134 scope = MatchScope(matchFrom, c1Length)
135 match = findMatchingLine(assertionGroup[0], c1Pass, scope, variables)
139 scope = MatchScope(matchFrom, matchFrom + 1)
140 match = findMatchingLine(assertionGroup[0], c1Pass, scope, variables)
143 scope = MatchScope(matchFrom, c1Length)
144 match = matchDagGroup(assertionGroup, c1Pass, scope, variables)
147 scope = MatchScope(matchFrom, c1Length)
148 testEvalGroup(assertionGroup, scope, variables)
154 scope = MatchScope(matchFrom, match.scope.start)
155 testNotGroup(pendingNotAssertions, c1Pass, scope, variables)
159 assert matchFrom <= match.scope.end
160 matchFrom = match.scope.end + 1