(base_go_out: Path)
| 405 | |
| 406 | |
| 407 | def _find_go_module_root(base_go_out: Path) -> Optional[Path]: |
| 408 | base_go_out = base_go_out.resolve() |
| 409 | for candidate in (base_go_out, *base_go_out.parents): |
| 410 | if (candidate / "go.mod").is_file(): |
| 411 | return candidate |
| 412 | return None |
| 413 | |
| 414 | |
| 415 | def _read_go_module_path(go_module_root: Path) -> Optional[str]: |
no outgoing calls
no test coverage detected