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 21925-0da0e71) Lines: 1261 1381 91.3 %
Date: 2018-02-21 06:16:18 Functions: 51 51 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
tame_1 21
theta_3_zi 28
tame_3 56
tame_4 56
polymini_zi2 77
quartic 77
theta_3_zi2 77
tame_2 91
tame_567_init_3 91
tame_7 91
padicfactors 119
tame_6 189
tame_234_init 203
get_red 210
labelm3 238
litredtp 259
groupH 280
RgX_recip6 301
dicyclic 329
tame_5 329
get_maxc 462
gmin3 574
myval_zi2 595
tame_567_init 609
factmz 742
tame 833
cyclic 1288
myval_zi 1337
apol2 1358
apol3 1358
apol5 1358
bpol2 1358
genus2red 1358
igusaj2 1358
igusaj4 1358
igusaj6 1358
zv_snf 1372
genus2localred 1386
stable_reduction 1386
min3 1582
polymini 1659
theta_j 1848
my3val 2674
chk_pol 2716
polval 3122
RgX_to_6 6503
myval 50526

Generated by: LCOV version 1.11