MCPcopy Create free account
hub / github.com/numpy/numpy / lcov_generate

Function lcov_generate

runtests.py:673–692  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671LCOV_HTML_DIR = os.path.join(ROOT_DIR, 'build', 'lcov')
672
673def lcov_generate():
674 try: os.unlink(LCOV_OUTPUT_FILE)
675 except OSError: pass
676 try: shutil.rmtree(LCOV_HTML_DIR)
677 except OSError: pass
678
679 print("Capturing lcov info...")
680 subprocess.call(['lcov', '-q', '-c',
681 '-d', os.path.join(ROOT_DIR, 'build'),
682 '-b', ROOT_DIR,
683 '--output-file', LCOV_OUTPUT_FILE])
684
685 print("Generating lcov HTML output...")
686 ret = subprocess.call(['genhtml', '-q', LCOV_OUTPUT_FILE,
687 '--output-directory', LCOV_HTML_DIR,
688 '--legend', '--highlight'])
689 if ret != 0:
690 print("genhtml failed!")
691 else:
692 print("HTML output generated under build/lcov/")
693
694def check_lint(lint_args):
695 """

Callers 1

mainFunction · 0.85

Calls 2

printFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected