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 19837-cc815bb) Lines: 391 482 81.1 %
Date: 2016-12-10 05:49:10 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 3206
Z_quad_char 154
Zfa_append 196
bnfisnorm 28
bnfissunit 1470
bnfsunit 147
bnfsunit0 322
check2 10983
den_remove 504
fa_append 140
hash_create_INT 196
hilb2nf 252
hyperell_locally_soluble 0
lemma6 0
lemma6nf 0
lemma7 0
lemma7nf 5775
make_unit 1470
nfX_eltup 7
nf_hyperell_locally_soluble 252
nfhilbert 7
nfhilbert0 560
nfhilbertp 546
p_append 609
psquare2nf 6279
psquare2nf_i 6279
psquarenf 0
quad_char 140
repres 252
rnfisnorm 70
rnfisnorminit 56
zpsol 0
zpsolnf 5775

Generated by: LCOV version 1.11