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 16375-9f41ae0) Lines: 1237 1384 89.4 %
Date: 2014-04-19 Functions: 51 52 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 527 743 70.9 %

Function Name Sort by function name Hit count Sort by hit count
RgX_recip6 280
RgX_to_6 6062
apol2 1281
apol3 1281
apol5 1281
bpol2 1281
cyclic 1176
deg1root 161
dicyclic 322
discpart 14
factmz 651
frac2s 16975
genus2localred 1281
genus2red 1281
get_maxc 420
get_red 168
gmin3 560
groupH 273
igusaj2 1281
igusaj4 1281
igusaj6 1281
labelm3 224
litredtp 231
min3 1442
my3val 2086
myval 47250
myval_zi 1043
myval_zi2 497
padicfactors 112
polval 2919
polymini 1554
polymini_zi 7
polymini_zi2 70
quadratic 7
quartic 70
stable_reduction 1281
tame 819
tame_1 21
tame_2 91
tame_234_init 203
tame_3 56
tame_4 56
tame_5 322
tame_567_init 595
tame_567_init_3 91
tame_6 182
tame_7 91
theta_3_zi 7
theta_3_zi2 63
theta_j 1708
zi2mod 0
zv_snf 1281

Generated by: LCOV version 1.9