Index the test repository
(test_dir: Path)
| 57 | run(f'cgc query "MATCH (r:Repository {{path: \\"{escaped_path}\\"}}) DETACH DELETE r"') |
| 58 | |
| 59 | def index_repo(test_dir: Path): |
| 60 | """Index the test repository""" |
| 61 | output = run(f"cgc index {test_dir}") |
| 62 | print(f"INDEX OUTPUT: {output[:500]}") # Debug |
| 63 | time.sleep(0.5) # Wait for indexing to complete |
| 64 | return output |
| 65 | |
| 66 | def query_all_files(): |
| 67 | """Query ALL files in database for debugging""" |
no test coverage detected