MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / _check_bad_statements

Method _check_bad_statements

tools/sampcd_processor.py:465–472  ·  view source on GitHub ↗
(self, docstring: str)

Source from the content-addressed store, hash-verified

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."""

Callers 1

runMethod · 0.95

Calls 4

setClass · 0.85
itemsMethod · 0.45
checkMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected