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.8.0 lcov report (development 19352-1b11b25) Lines: 3184 3472 91.7 %
Date: 2016-08-25 06:11:27 Functions: 363 430 84.4 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
add.c
89.9%89.9%
89.9 % 187 / 208 83.3 % 10 / 12
addll.h
100.0%
100.0 % 16 / 16 100.0 % 4 / 4
bfffo.h
100.0%
100.0 % 8 / 8 100.0 % 1 / 1
cmp.c
94.4%94.4%
94.4 % 67 / 71 100.0 % 7 / 7
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
gcdext.c
97.9%97.9%
97.9 % 94 / 96 100.0 % 1 / 1
gcdll.c
98.9%98.9%
98.9 % 356 / 360 100.0 % 14 / 14
invmod.c
96.2%96.2%
96.2 % 51 / 53 100.0 % 2 / 2
level1.h
76.9%76.9%
76.9 % 536 / 697 75.3 % 192 / 255
mp.c
96.3%96.3%
96.3 % 1106 / 1148 100.0 % 69 / 69
mp_indep.c
91.9%91.9%
91.9 % 513 / 558 96.2 % 50 / 52
mulll.h
100.0%
100.0 % 25 / 25 100.0 % 2 / 2
ratlift.c
92.6%92.6%
92.6 % 87 / 94 100.0 % 2 / 2

Generated by: LCOV version 1.11