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 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.10.0 lcov report (development 20459-9710128) Lines: 719 836 86.0 %
Date: 2017-03-30 05:32:39 Functions: 51 56 91.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Fl_powers_FpV 198
Flm_init 0
Flv_fill 0
Stelt 558
_rnfkummer 360
build_list_Hecke 354
compositum_red 198
compute_beta 372
compute_polrel 216
downtoK 888
famat_factorback 1140
fix_kernel 0
get_Selmer 354
get_badbnf 528
get_gell 360
get_mmu 516
get_prlist 342
get_przlist 186
get_tau 198
get_u 354
grptocol 0
ideallifttoKz 198
idealsqrtn 1080
increment 120
invimsubgroup 108
isconjinprimelist 936
isprimeidealconj 552
isprincipalell 402
isvirtualunit 708
lambdaofelt 462
lambdaofvec 384
lift_if_rational 17352
lifttoKz 294
logall 576
mod_Xell_a 2556
nfX_Z_normalize 216
no_sol 0
ok_congruence 462
ok_sign 222
pol_from_Newton 216
polrelKzK 108
powtau 540
prank 930
prlifttoKz 324
reduce_mod_Qell 372
reducebeta 372
rnfkummer 360
rnfkummersimple 156
split_pol 5112
subgroup_info 342
tauofalg 390
tauofelt 8520
tauoffamat 996
tauofideal 120
tauofvec 1140
to_alg 732

Generated by: LCOV version 1.11