(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch)
| 252 | assert resolve_db_dir(src / "myproject") == dst / "myproject" |
| 253 | |
| 254 | def test_exact_root_match(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: |
| 255 | src = tmp_path / "workspace" |
| 256 | dst = tmp_path / "db-files" |
| 257 | monkeypatch.setenv("COCOINDEX_CODE_DB_PATH_MAPPING", f"{src}={dst}") |
| 258 | assert resolve_db_dir(src) == dst |
| 259 | |
| 260 | def test_no_match_falls_back(self, tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> None: |
| 261 | src = tmp_path / "workspace" |
nothing calls this directly
no test coverage detected