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.8.0 lcov report (development 19369-efd6c3d) Lines: 380 471 80.7 %
Date: 2016-08-29 06:11:50 Functions: 25 31 80.6 %
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_pr_append 196
bnfisnorm 28
bnfissunit 1470
bnfsunit 147
check2 10983
den_remove 504
fa_pr_append 140
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
pr_append 532
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