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 - modules - kummer.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17240-4611fa9) Lines: 738 853 86.5 %
Date: 2014-12-21 Functions: 53 58 91.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 358 545 65.7 %

Function Name Sort by function name Hit count Sort by hit count
Babai 287
Fl_powers_FpV 217
Flm_init 0
Flv_fill 0
Stelt 651
_rnfkummer 273
build_list_Hecke 266
compositum_red 217
compute_beta 287
compute_polrel 238
downtoK 1008
famat_factorback 1148
fix_kernel 0
get_Selmer 266
get_badbnf 455
get_gell 273
get_mmu 574
get_prlist 252
get_przlist 203
get_reverse 238
get_tau 217
get_u 266
grptocol 0
ideallifttoKz 217
idealsqrtn 1092
increment 70
invimsubgroup 126
isconjinprimelist 854
isprimeidealconj 630
isprincipalell 329
isvirtualunit 805
lambdaofelt 504
lambdaofvec 420
lift_if_rational 12166
lifttoKz 343
logall 532
mod_Xell_a 2870
nfX_Z_normalize 238
no_sol 0
ok_congruence 322
ok_sign 56
pol_from_Newton 238
polrelKzK 126
powtau 602
prank 798
prlifttoKz 364
reduce_mod_Qell 434
reducebeta 287
rnfkummer 273
rnfkummersimple 49
split_pol 5740
subgroup_info 252
tauofalg 1624
tauofelt 9793
tauoffamat 1043
tauofideal 140
tauofvec 1211
to_alg 812

Generated by: LCOV version 1.9