Lines Matching refs:self
119 def __init__(self, options) -> None:
120 self.options = options
121 self.count = 0
122 self.errors = [] #type: List[Tests.Error]
124 def run_one(self, inputs: InputsForTest, type_word: str) -> None:
132 include_path=self.options.include,
133 keep_c=self.options.keep_c)
134 output_bytes = subprocess.check_output([self.options.program,
138 self.count += len(expressions)
140 if self.options.show:
143 self.errors.append(self.Error(type=type_word,
148 def run_all(self, inputs: InputsForTest) -> None:
152 self.run_one(inputs, type_word)
154 def report(self, out: typing_util.Writable) -> None:
160 for error in self.errors:
164 out.write('{} test cases'.format(self.count))
165 if self.errors:
166 out.write(', {} FAIL\n'.format(len(self.errors)))