MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / index_repo

Function index_repo

tests/unit/core/test_cgcignore_patterns.py:76–81  ·  view source on GitHub ↗

Index the test repository

(test_dir: Path)

Source from the content-addressed store, hash-verified

74 run(f'{CGC_CMD} query "MATCH (r:Repository {{path: \\"{escaped_path}\\"}}) DETACH DELETE r"')
75
76def index_repo(test_dir: Path):
77 """Index the test repository"""
78 output = run(f"{CGC_CMD} index {shlex.quote(str(test_dir))}")
79 print(f"INDEX OUTPUT: {output}") # Show FULL output
80 time.sleep(0.5) # Wait for indexing to complete
81 return output
82
83def query_all_files():
84 """Query ALL files in database for debugging"""

Calls 1

runFunction · 0.70

Tested by

no test coverage detected