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 - modules - genus2red.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23008-54b2e2f01) Lines: 1207 1314 91.9 %
Date: 2018-09-20 05:37:46 Functions: 54 54 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
discpart 14
zi_pow3mod 14
polymini_zi 21
quadratic 21
ssQ_denom 28
tame_1 28
theta_3_zi 28
tame_3 56
tame_4 56
polymini_zi2 84
quartic 84
theta_3_zi2 84
tame_2 91
tame_567_init_3 91
tame_7 91
padicfactors 119
get_nrq 154
tame_6 189
tame_234_init 203
get_red 224
labelm3 245
litredtp 266
groupH 280
RgX_recip6 308
tame_5 329
dicyclic 336
get_nr 455
get_maxc 483
tame_567_init 609
myval_zi2 672
factmz 770
tame 840
cyclic 1309
ssQ_red 1330
apol2 1379
apol3 1379
apol5 1379
bpol2 1379
genus2red 1379
igusaj2 1379
igusaj4 1379
igusaj6 1379
zv_snf 1400
genus2localred 1421
stable_reduction 1421
myval_zi 1491
RgX_to_06 1603
polymini 1694
min3 1911
theta_j 1911
chk_pol 2758
my3val 2982
RgX_to_03 3136
myval 23702

Generated by: LCOV version 1.13