Lines Matching refs:self
107 def __init__(self, options) -> None: argument
108 self.options = options
109 self.count = 0
110 self.errors = [] #type: List[Tests.Error]
112 def run_one(self, inputs: InputsForTest, type_word: str) -> None: argument
120 include_path=self.options.include,
121 keep_c=self.options.keep_c)
122 output_bytes = subprocess.check_output([self.options.program,
126 self.count += len(expressions)
128 if self.options.show:
131 self.errors.append(self.Error(type=type_word,
136 def run_all(self, inputs: InputsForTest) -> None: argument
140 self.run_one(inputs, type_word)
142 def report(self, out: typing_util.Writable) -> None: argument
148 for error in self.errors:
152 out.write('{} test cases'.format(self.count))
153 if self.errors:
154 out.write(', {} FAIL\n'.format(len(self.errors)))