MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / create_cache_entry

Function create_cache_entry

tests/test_cache.py:24–30  ·  view source on GitHub ↗
(arg: str, metadata: dict, fixtures)

Source from the content-addressed store, hash-verified

22
23
24def create_cache_entry(arg: str, metadata: dict, fixtures) -> cache.Cache:
25 if metadata["type"] == "mirrorfile":
26 c = cache.MirrorFile(src=Path(fixtures.path(arg)), tags=metadata.get("tags"))
27 c.fetch()
28 assert c.is_valid
29 assert c.metadata_location.exists()
30 return c
31
32
33@pytest.mark.parametrize("url,cache_id", (

Callers 2

test_cache_purgeFunction · 0.85

Calls 4

fetchMethod · 0.95
pathMethod · 0.80
getMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected