Code coverage tests

This page documents the degree to which the PARI/GP source code is tested by our public test suite, distributed with the source distribution in directory src/test/. This is measured by the gcov utility; we then process gcov output using the lcov frond-end.

We test a few variants depending on Configure flags on the pari.math.u-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 90% coverage for all mathematical modules (given that branches depending on DEBUGLEVEL or DEBUGMEM are not covered). This script is run to produce the results below.

LCOV - code coverage report
Current view: top level - kernel/none Hit Total Coverage
Test: PARI/GP v2.10.1 lcov report (development 22726-9e20c6a88) Lines: 3232 3481 92.8 %
Date: 2018-06-23 05:36:28 Functions: 376 443 84.9 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
level1.h
78.3%78.3%
78.3 % 569 / 727 76.0 % 203 / 267
mp_indep.c
92.1%92.1%
92.1 % 524 / 569 96.2 % 51 / 53
cmp.c
94.4%94.4%
94.4 % 67 / 71 100.0 % 7 / 7
ratlift.c
95.7%95.7%
95.7 % 89 / 93 100.0 % 2 / 2
invmod.c
96.1%96.1%
96.1 % 49 / 51 100.0 % 2 / 2
mp.c
97.3%97.3%
97.3 % 1112 / 1143 100.0 % 69 / 69
gcdext.c
97.9%97.9%
97.9 % 94 / 96 100.0 % 1 / 1
gcdll.c
99.2%99.2%
99.2 % 354 / 357 93.8 % 15 / 16
bfffo.h
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
addll.h
100.0%
100.0 % 16 / 16 100.0 % 4 / 4
mulll.h
100.0%
100.0 % 25 / 25 100.0 % 2 / 2
divll.h
100.0%
100.0 % 34 / 34 100.0 % 1 / 1
divll_pre.h
100.0%
100.0 % 48 / 48 100.0 % 5 / 5
gcd.c
100.0%
100.0 % 56 / 56 100.0 % 3 / 3
add.c
100.0%
100.0 % 187 / 187 100.0 % 10 / 10

Generated by: LCOV version 1.13