Lines Matching refs:state
87 def run(self, state):
91 def run(self, state):
102 state.result.log += 'unexpected indent in code check:\n'
103 state.result.log += self.data + '\n'
109 exec(code, state.g)
110 state.result.log += state.g['log']
111 state.g['log'] = ''
113 state.result.log += 'code check at %s raised exception:\n' % self.position
114 state.result.log += code + '\n'
115 state.result.log += str(e)
117 if not state.g['success']:
118 state.result.log += 'code check at %s failed:\n' % self.position
119 state.result.log += code + '\n'
345 def run(self, state):
347 res = do_match(state.g, pattern_stream, state.g['output'], self.search)
349 state.result.log += 'pattern at %s failed: %s\n' % (self.position, res.fail_message)
350 state.result.log += res.format_pattern_pos() + '\n\n'
352 out_line = state.g['output'].get_line(res.output_pos.line)
353 state.result.log += '\n'.join(format_error_lines('at', res.output_pos.line, res.output_pos.column, 'output', out_line))
355 state.result.log += 'output was:\n'
356 state.result.log += state.g['output'].data.rstrip() + '\n'
381 state = CheckState(result, variant, checks, output)
383 while len(state.checks):
384 check = state.checks.pop(0)
385 state.current_position = check.position
386 if not check.run(state):
390 for check in state.insert_queue[::-1]:
391 state.checks.insert(0, check)
392 state.insert_queue.clear()