Index the test repository
(test_dir: Path)
| 74 | run(f'{CGC_CMD} query "MATCH (r:Repository {{path: \\"{escaped_path}\\"}}) DETACH DELETE r"') |
| 75 | |
| 76 | def 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 | |
| 83 | def query_all_files(): |
| 84 | """Query ALL files in database for debugging""" |
no test coverage detected