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 16624-25b9976) Lines: 1237 1384 89.4 %
Date: 2014-06-24 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 200
RgX_to_6 4330
apol2 915
apol3 915
apol5 915
bpol2 915
cyclic 840
deg1root 115
dicyclic 230
discpart 10
factmz 465
frac2s 12125
genus2localred 915
genus2red 915
get_maxc 300
get_red 120
gmin3 400
groupH 195
igusaj2 915
igusaj4 915
igusaj6 915
labelm3 160
litredtp 165
min3 1030
my3val 1490
myval 33750
myval_zi 745
myval_zi2 355
padicfactors 80
polval 2085
polymini 1110
polymini_zi 5
polymini_zi2 50
quadratic 5
quartic 50
stable_reduction 915
tame 585
tame_1 15
tame_2 65
tame_234_init 145
tame_3 40
tame_4 40
tame_5 230
tame_567_init 425
tame_567_init_3 65
tame_6 130
tame_7 65
theta_3_zi 5
theta_3_zi2 45
theta_j 1220
zi2mod 0
zv_snf 915

Generated by: LCOV version 1.9