MCPcopy Create free account
hub / github.com/Persper/code-analytics / az

Function az

test/test_analytics/test_analyzer.py:12–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11@pytest.fixture(scope='module')
12def az():
13 # build the repo first if not exists yet
14 repo_path = os.path.join(root_path, 'repos/test_feature_branch')
15 script_path = os.path.join(root_path, 'tools/repo_creater/create_repo.py')
16 test_src_path = os.path.join(root_path, 'test/test_feature_branch')
17
18 # Always use latest source to create test repo
19 if os.path.exists(repo_path):
20 shutil.rmtree(repo_path)
21
22 cmd = '{} {}'.format(script_path, test_src_path)
23 subprocess.call(cmd, shell=True)
24
25 return Analyzer(repo_path, CGraphServer(C_FILENAME_REGEXES))
26
27
28@pytest.mark.asyncio

Callers

nothing calls this directly

Calls 2

AnalyzerClass · 0.90
CGraphServerClass · 0.90

Tested by

no test coverage detected