Method
test
(self, parent: etree.Element, block: str)
Source from the content-addressed store, hash-verified
| 534 | SEARCH_RE = re.compile(RE, re.MULTILINE) |
| 535 | |
| 536 | def test(self, parent: etree.Element, block: str) -> bool: |
| 537 | m = self.SEARCH_RE.search(block) |
| 538 | if m: |
| 539 | # Save match object on class instance so we can use it later. |
| 540 | self.match = m |
| 541 | return True |
| 542 | return False |
| 543 | |
| 544 | def run(self, parent: etree.Element, blocks: list[str]) -> None: |
| 545 | block = blocks.pop(0) |
Callers
nothing calls this directly
Tested by
no test coverage detected