INNER CODE UNIT · Python

total

hacan359/tonkatsu_box · tool/merge_lcov.py:59

    total = sum(len(c) for c in hits.values())
    covered = sum(sum(1 for v in c.values() if v > 0) for c in hits.values())
    percent = 100 * covered / total if total else 0
    print(f'merged {len(argv) - 2} tracefiles: '
          f'{covered}/{total} lines ({percent:.1f}%) across {len(hits)} files')
    return 0


if __name__ == '__main__':
    sys.exit(main(sys.argv))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…