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 17097-9391e68) Lines: 740 855 86.5 %
Date: 2014-11-21 Functions: 53 58 91.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 361 549 65.8 %

Function Name Sort by function name Hit count Sort by hit count
Babai 165
Fl_powers_FpV 125
Flm_init 0
Flv_fill 0
Stelt 420
_rnfkummer 155
build_list_Hecke 150
compositum_red 125
compute_beta 165
compute_polrel 140
downtoK 615
famat_factorback 660
fix_kernel 0
get_Selmer 150
get_badbnf 255
get_gell 155
get_mmu 330
get_prlist 140
get_przlist 115
get_reverse 140
get_tau 125
get_u 150
grptocol 0
ideallifttoKz 125
idealsqrtn 655
increment 50
invimsubgroup 85
isconjinprimelist 425
isprimeidealconj 230
isprincipalell 170
isvirtualunit 490
lambdaofelt 280
lambdaofvec 240
lift_if_rational 2390
lifttoKz 225
logall 325
mod_Xell_a 1650
nfX_Z_normalize 140
no_sol 0
ok_congruence 190
ok_sign 30
pol_from_Newton 140
polrelKzK 85
powtau 365
prank 475
prlifttoKz 230
reduce_mod_Qell 265
reducebeta 165
rnfkummer 155
rnfkummersimple 25
split_pol 3300
subgroup_info 140
tauofalg 995
tauofelt 5605
tauoffamat 555
tauofideal 90
tauofvec 660
to_alg 470

Generated by: LCOV version 1.9