(root: Path)
| 276 | |
| 277 | |
| 278 | def _defined_elements(root: Path) -> set[str]: |
| 279 | names: set[str] = set() |
| 280 | assets = root / "assets" |
| 281 | if assets.is_dir(): |
| 282 | for p in [*assets.glob("*.js"), *assets.glob("*.js.liquid")]: |
| 283 | names.update(m.group(2) for m in _DEFINE.finditer(_read(p))) |
| 284 | for p in _liquid_files(root): |
| 285 | for jm in _JS_BLOCK.finditer(_read(p)): |
| 286 | names.update(m.group(2) for m in _DEFINE.finditer(jm.group(1))) |
| 287 | return names |
| 288 | |
| 289 | |
| 290 | def cases_c(root: Path) -> list[Case]: |
no test coverage detected