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 16912-212c0f0) Lines: 1266 1397 90.6 %
Date: 2014-10-20 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 280
RgX_to_6 6265
apol2 1316
apol3 1316
apol5 1316
bpol2 1316
chk_pol 2632
cyclic 1232
deg1root 175
dicyclic 322
discpart 14
factmz 679
frac2s 17549
genus2localred 1330
genus2red 1316
get_maxc 448
get_red 196
gmin3 567
groupH 273
igusaj2 1316
igusaj4 1316
igusaj6 1316
labelm3 224
litredtp 245
min3 1526
my3val 2674
myval 48734
myval_zi 1337
myval_zi2 595
padicfactors 119
polval 3017
polymini 1596
polymini_zi 21
polymini_zi2 77
quadratic 21
quartic 77
stable_reduction 1330
tame 826
tame_1 21
tame_2 91
tame_234_init 203
tame_3 56
tame_4 56
tame_5 329
tame_567_init 602
tame_567_init_3 91
tame_6 182
tame_7 91
theta_3_zi 28
theta_3_zi2 77
theta_j 1764
zi_pow3mod 14
zv_snf 1323

Generated by: LCOV version 1.9