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 16912-212c0f0) Lines: 386 471 82.0 %
Date: 2014-10-20 Functions: 26 32 81.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 211 339 62.2 %

Function Name Sort by function name Hit count Sort by hit count
ZC_add_coeff 3206
Z_quad_char 154
Zfa_pr_append 119
bnfisnorm 28
bnfissunit 1365
bnfsunit 133
check2 10983
den_remove 504
fa_pr_append 63
hilb2nf 252
hyperell_locally_soluble 0
lemma6 0
lemma6nf 0
lemma7 0
lemma7nf 5775
make_unit 1365
nfX_eltup 7
nfX_fix_var 7
nf_hyperell_locally_soluble 252
nfhilbert 7
nfhilbert0 560
nfhilbertp 546
pr_append 511
psquare2nf 6279
psquare2nf_i 6279
psquarenf 0
quad_char 140
repres 252
rnfisnorm 63
rnfisnorminit 49
zpsol 0
zpsolnf 5775

Generated by: LCOV version 1.9