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 17110-9967e23) Lines: 738 853 86.5 %
Date: 2014-11-26 Functions: 53 58 91.4 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 357 545 65.5 %

Function Name Sort by function name Hit count Sort by hit count
Babai 170
Fl_powers_FpV 130
Flm_init 0
Flv_fill 0
Stelt 465
_rnfkummer 160
build_list_Hecke 155
compositum_red 130
compute_beta 170
compute_polrel 145
downtoK 660
famat_factorback 715
fix_kernel 0
get_Selmer 155
get_badbnf 265
get_gell 160
get_mmu 350
get_prlist 145
get_przlist 120
get_reverse 145
get_tau 130
get_u 155
grptocol 0
ideallifttoKz 130
idealsqrtn 690
increment 50
invimsubgroup 90
isconjinprimelist 435
isprimeidealconj 235
isprincipalell 180
isvirtualunit 520
lambdaofelt 290
lambdaofvec 250
lift_if_rational 2390
lifttoKz 210
logall 345
mod_Xell_a 1770
nfX_Z_normalize 145
no_sol 0
ok_congruence 195
ok_sign 30
pol_from_Newton 145
polrelKzK 90
powtau 380
prank 500
prlifttoKz 215
reduce_mod_Qell 265
reducebeta 170
rnfkummer 160
rnfkummersimple 25
split_pol 3540
subgroup_info 145
tauofalg 1050
tauofelt 6375
tauoffamat 625
tauofideal 100
tauofvec 745
to_alg 495

Generated by: LCOV version 1.9