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

Function prepareRepo

test/test_analytics/test_analyzer_lsp_ccls.py:25–34  ·  view source on GitHub ↗
(repoName: str)

Source from the content-addressed store, hash-verified

23
24
25def prepareRepo(repoName: str):
26 # build the repo first if not exists yet
27 repo_path = os.path.join(root_path, 'repos/' + repoName)
28 script_path = os.path.join(root_path, 'tools/repo_creater/create_repo.py')
29 test_src_path = os.path.join(root_path, 'test/' + repoName)
30 if not os.path.isdir(repo_path):
31 cmd = '{} {}'.format(script_path, test_src_path)
32 subprocess.call(cmd, shell=True)
33 print("Repository path: ", repo_path)
34 return repo_path
35
36
37def createCclsGraphServer():

Callers 3

testFeatureBranchFunction · 0.85
testCppTestRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected