(config: Config, path: Path, parent: Collector)
| 172 | |
| 173 | |
| 174 | def _is_ipdoctest(config: Config, path: Path, parent: Collector) -> bool: |
| 175 | if path.suffix in (".txt", ".rst") and parent.session.isinitpath(path): |
| 176 | return True |
| 177 | globs = config.getoption("ipdoctestglob") or ["test*.txt"] |
| 178 | return any(fnmatch_ex(glob, path) for glob in globs) |
| 179 | |
| 180 | |
| 181 | def _is_main_py(path: Path) -> bool: |
no outgoing calls
no test coverage detected
searching dependent graphs…