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

Function hit

scripts/theme_gate.py:505–508  ·  view source on GitHub ↗
(file: str, line: int, key: str)

Source from the content-addressed store, hash-verified

503 cases: list = []
504
505 def hit(file: str, line: int, key: str) -> bool:
506 if any(norm(n.get("label")) == key for n in graph.targets(file, line)):
507 return True
508 return any(norm(n.get("label")) == key for n in graph.nodes_at.get((file, line), []))
509
510 if cat == "a":
511 for file, line, name, expected in cases_a(root):

Callers 1

measureFunction · 0.85

Calls 3

normFunction · 0.70
getMethod · 0.45
targetsMethod · 0.45

Tested by

no test coverage detected