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-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is to exceed 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 - kummer.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23171-a5c0ed393) Lines: 795 867 91.7 %
Date: 2018-10-20 05:38:07 Functions: 59 61 96.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
grptocol 0
no_sol 0
Flm_init 7
fix_kernel 7
invimsubgroup 126
polrelKzK 126
famat_factorback 140
tauofideal 140
get_przlist 217
_rnfkummer_step18 231
_rnfkummer_step4 231
_rnfkummer_step5 231
compositum_red 231
get_tau 231
ideallifttoKz 231
rnfkummer_ell 231
rnfkummer_init 231
compute_polrel 252
nfX_Z_normalize 252
pol_from_Newton 252
rnfkummersimple 259
Flv_fill 301
lifttoKz 343
prlifttoKz 378
increment 427
ok_sign 427
lambdaofvec 448
tauofalg 455
get_prlist 469
subgroup_info 469
build_list_Hecke 490
get_Selmer 490
get_u 490
_rnfkummer 497
get_gell 497
rnfkummer 497
compute_beta 532
reduce_mod_Qell 532
reducebeta 532
lambdaofelt 539
isprincipalell 546
get_mmu 602
powtau 630
isprimeidealconj 644
Stelt 651
get_badbnf 686
logall 742
isvirtualunit 826
ok_congruence 833
to_alg 854
downtoK 1036
tauoffamat 1162
prank 1232
isconjinprimelist 1239
famat_factorbacks 1288
tauofvec 1330
idealsqrtn 1358
mod_Xell_a 2982
split_pol 5964
tauofelt 9898
lift_if_rational 45038

Generated by: LCOV version 1.13