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 17097-9391e68) Lines: 380 465 81.7 %
Date: 2014-11-21 Functions: 25 31 80.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 207 335 61.8 %

Function Name Sort by function name Hit count Sort by hit count
ZC_add_coeff 2290
Z_quad_char 110
Zfa_pr_append 85
bnfisnorm 20
bnfissunit 975
bnfsunit 95
check2 7845
den_remove 360
fa_pr_append 45
hilb2nf 180
hyperell_locally_soluble 0
lemma6 0
lemma6nf 0
lemma7 0
lemma7nf 4125
make_unit 975
nfX_eltup 5
nf_hyperell_locally_soluble 180
nfhilbert 5
nfhilbert0 400
nfhilbertp 390
pr_append 365
psquare2nf 4485
psquare2nf_i 4485
psquarenf 0
quad_char 100
repres 180
rnfisnorm 45
rnfisnorminit 35
zpsol 0
zpsolnf 4125

Generated by: LCOV version 1.9