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-bordeaux1.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.8.0 lcov report (development 16791-0d1274a) Lines: 1266 1397 90.6 %
Date: 2014-09-16 Functions: 53 53 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 556 753 73.8 %

Function Name Sort by function name Hit count Sort by hit count
RgX_recip6 200
RgX_to_6 4475
apol2 940
apol3 940
apol5 940
bpol2 940
chk_pol 1880
cyclic 880
deg1root 125
dicyclic 230
discpart 10
factmz 485
frac2s 12535
genus2localred 950
genus2red 940
get_maxc 320
get_red 140
gmin3 405
groupH 195
igusaj2 940
igusaj4 940
igusaj6 940
labelm3 160
litredtp 175
min3 1090
my3val 1910
myval 34810
myval_zi 955
myval_zi2 425
padicfactors 85
polval 2155
polymini 1140
polymini_zi 15
polymini_zi2 55
quadratic 15
quartic 55
stable_reduction 950
tame 590
tame_1 15
tame_2 65
tame_234_init 145
tame_3 40
tame_4 40
tame_5 235
tame_567_init 430
tame_567_init_3 65
tame_6 130
tame_7 65
theta_3_zi 20
theta_3_zi2 55
theta_j 1260
zi_pow3mod 10
zv_snf 945

Generated by: LCOV version 1.9