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-bordeaux1.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 16358-a11f489) Lines: 384 469 81.9 %
Date: 2014-04-11 Functions: 25 31 80.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 208 335 62.1 %

Function Name Sort by function name Hit count Sort by hit count
ZC_add_coeff 2270
Z_quad_char 110
Zfa_pr_append 85
bnfisnorm 20
bnfissunit 975
bnfsunit 95
check2 7790
den_remove 350
fa_pr_append 45
hilb2nf 175
hyperell_locally_soluble 0
lemma6 0
lemma6nf 0
lemma7 0
lemma7nf 4070
make_unit 975
nfX_eltup 5
nfX_fix_var 5
nf_hyperell_locally_soluble 175
nfhilbert 5
nfhilbert0 395
nfhilbertp 385
pr_append 365
psquare2nf 4419
psquarenf 0
quad_char 100
repres 174
rnfisnorm 45
rnfisnorminit 35
zpsol 0
zpsolnf 4070

Generated by: LCOV version 1.9