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 16741-1378b1c) Lines: 1256 1391 90.3 %
Date: 2014-08-17 Functions: 52 52 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 548 751 73.0 %

Function Name Sort by function name Hit count Sort by hit count
RgX_recip6 200
RgX_to_6 4415
apol2 930
apol3 930
apol5 930
bpol2 930
cyclic 860
deg1root 120
dicyclic 230
discpart 10
factmz 475
frac2s 12360
genus2localred 935
genus2red 930
get_maxc 315
get_red 130
gmin3 400
groupH 195
igusaj2 930
igusaj4 930
igusaj6 930
labelm3 160
litredtp 170
min3 1070
my3val 1880
myval 34325
myval_zi 940
myval_zi2 425
padicfactors 85
polval 2125
polymini 1125
polymini_zi 10
polymini_zi2 55
quadratic 10
quartic 55
stable_reduction 935
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 15
theta_3_zi2 55
theta_j 1240
zi_pow3mod 10
zv_snf 930

Generated by: LCOV version 1.9