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

Function run

tests/unit/core/test_cgcignore_patterns.py:41–44  ·  view source on GitHub ↗

Run command and return output

(cmd)

Source from the content-addressed store, hash-verified

39 return BASE_TEST_DIR / f"test_{unique_id}"
40
41def run(cmd):
42 """Run command and return output"""
43 result = subprocess.run(cmd, shell=True, capture_output=True, text=True, env=_test_env())
44 return result.stdout + result.stderr
45
46
47def _is_neo4j_reachable(host: str = "localhost", port: int = 7687, timeout: float = 1.0) -> bool:

Callers 6

clean_db_completelyFunction · 0.70
delete_repo_from_dbFunction · 0.70
index_repoFunction · 0.70
query_all_filesFunction · 0.70
query_all_reposFunction · 0.70
query_files_for_repoFunction · 0.70

Calls 2

_test_envFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected