MCPcopy Create free account
hub / github.com/Qinbf/groundmap / test_empty_rejected

Method test_empty_rejected

scripts/tests/test_k_helpers.py:486–488  ·  view source on GitHub ↗
(self, fake_kb)

Source from the content-addressed store, hash-verified

484 assert p == (fake_kb / "raw" / "foo.md").resolve()
485
486 def test_empty_rejected(self, fake_kb):
487 assert k._safe_join_under_root("") is None
488 assert k._safe_join_under_root(None) is None # type: ignore[arg-type]
489
490 def test_dotdot_rejected(self, fake_kb):
491 assert k._safe_join_under_root("raw/../../etc/passwd") is None

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected