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 16804-345a01c) Lines: 741 856 86.6 %
Date: 2014-09-20 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 231
Fl_powers_FpV 175
Flm_init 0
Flv_fill 0
Stelt 588
_rnfkummer 217
build_list_Hecke 210
compositum_red 175
compute_beta 231
compute_polrel 196
downtoK 861
famat_factorback 924
fix_kernel 0
get_Selmer 210
get_badbnf 357
get_gell 217
get_mmu 462
get_prlist 196
get_przlist 161
get_reverse 196
get_tau 175
get_u 210
grptocol 0
ideallifttoKz 175
idealsqrtn 917
increment 70
invimsubgroup 119
isconjinprimelist 595
isprimeidealconj 322
isprincipalell 238
isvirtualunit 686
lambdaofelt 392
lambdaofvec 336
lift_if_rational 3346
lifttoKz 315
logall 455
mod_Xell_a 2310
nfX_Z_normalize 196
no_sol 0
ok_congruence 266
ok_sign 42
pol_from_Newton 196
polrelKzK 119
powtau 511
prank 665
prlifttoKz 322
reduce_mod_Qell 371
reducebeta 231
rnfkummer 217
rnfkummersimple 35
split_pol 4620
subgroup_info 196
tauofalg 1393
tauofelt 7847
tauoffamat 777
tauofideal 126
tauofvec 924
to_alg 658

Generated by: LCOV version 1.9