(self, docstring: str)
| 463 | self._test_capacity = test_capacity |
| 464 | |
| 465 | def _check_bad_statements(self, docstring: str) -> set[BadStatement]: |
| 466 | bad_results = set() |
| 467 | for _, statement_cls in self.bad_statements.items(): |
| 468 | bad_statement = statement_cls[0](*statement_cls[1:]) |
| 469 | if bad_statement.check(docstring): |
| 470 | bad_results.add(bad_statement) |
| 471 | |
| 472 | return bad_results |
| 473 | |
| 474 | def run(self, api_name: str, docstring: str) -> list[TestResult]: |
| 475 | """Run the xdoctest with a docstring.""" |