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 - genus2red.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 1260 1382 91.2 %
Date: 2017-03-30 05:32:39 Functions: 52 52 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
RgX_recip6 258
RgX_to_6 5538
apol2 1158
apol3 1158
apol5 1158
bpol2 1158
chk_pol 2316
cyclic 1092
dicyclic 282
discpart 12
factmz 624
frac2s 15486
genus2localred 1176
genus2red 1158
get_maxc 396
get_red 180
gmin3 492
groupH 240
igusaj2 1158
igusaj4 1158
igusaj6 1158
labelm3 204
litredtp 222
min3 1344
my3val 2292
myval 43014
myval_zi 1146
myval_zi2 510
padicfactors 102
polval 2658
polymini 1410
polymini_zi 18
polymini_zi2 66
quadratic 18
quartic 66
stable_reduction 1176
tame 714
tame_1 18
tame_2 78
tame_234_init 174
tame_3 48
tame_4 48
tame_5 282
tame_567_init 522
tame_567_init_3 78
tame_6 162
tame_7 78
theta_3_zi 24
theta_3_zi2 66
theta_j 1572
zi_pow3mod 12
zv_snf 1164

Generated by: LCOV version 1.11