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 21353-12523aa) Lines: 390 484 80.6 %
Date: 2017-11-24 06:20:58 Functions: 27 33 81.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
hyperell_locally_soluble 0
lemma6 0
lemma6nf 0
lemma7 0
psquarenf 0
zpsol 0
nfX_eltup 7
nfhilbert 7
bnfisnorm 28
rnfisnorminit 56
rnfisnorm 70
fa_append 140
quad_char 140
bnfsunit 147
Z_quad_char 154
Zfa_append 196
hash_create_INT 196
hilb2nf 252
nf_hyperell_locally_soluble 252
repres 252
bnfsunit0 322
den_remove 504
nfhilbertp 546
nfhilbert0 560
p_append 609
bnfissunit 1470
make_unit 1470
ZC_add_coeff 3206
lemma7nf 5775
zpsolnf 5775
psquare2nf 6279
psquare2nf_i 6279
check2 10983

Generated by: LCOV version 1.11