MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / compute

Function compute

tests/test_word_count_cache.py:36–38  ·  view source on GitHub ↗
(p: Path)

Source from the content-addressed store, hash-verified

34
35 calls = {"n": 0}
36 def compute(p: Path) -> int:
37 calls["n"] += 1
38 return len(p.read_text().split())
39
40 assert cache.cached_word_count(f, tmp_path, compute) == 5
41 assert calls["n"] == 1

Callers 1

cached_word_countFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected