MCPcopy Create free account
hub / github.com/Pometry/Raphtory / wrapper

Function wrapper

python/test_utils/utils.py:75–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73 def decorator(func):
74 @wraps(func)
75 def wrapper():
76 check = func()
77 assert callable(
78 check
79 ), f"Expected test function to return a callable, got {type(check)}"
80
81 if "graph" in variants:
82 g = init_fn(Graph())
83 check(g)
84
85 if "persistent_graph" in variants:
86 pg = init_fn(PersistentGraph())
87 check(pg)
88
89 return wrapper
90

Callers

nothing calls this directly

Calls 4

GraphClass · 0.90
PersistentGraphClass · 0.90
funcFunction · 0.85
checkFunction · 0.50

Tested by

no test coverage detected