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 - basemath - buch4.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 390 484 80.6 %
Date: 2017-04-28 05:33:48 Functions: 27 33 81.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZC_add_coeff 2748
Z_quad_char 132
Zfa_append 168
bnfisnorm 24
bnfissunit 1260
bnfsunit 126
bnfsunit0 276
check2 9414
den_remove 432
fa_append 120
hash_create_INT 168
hilb2nf 216
hyperell_locally_soluble 0
lemma6 0
lemma6nf 0
lemma7 0
lemma7nf 4950
make_unit 1260
nfX_eltup 6
nf_hyperell_locally_soluble 216
nfhilbert 6
nfhilbert0 480
nfhilbertp 468
p_append 522
psquare2nf 5382
psquare2nf_i 5382
psquarenf 0
quad_char 120
repres 216
rnfisnorm 60
rnfisnorminit 48
zpsol 0
zpsolnf 4950

Generated by: LCOV version 1.11