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 18591-61b65cc) Lines: 1279 1406 91.0 %
Date: 2016-02-10 Functions: 53 53 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 566 759 74.6 %

Function Name Sort by function name Hit count Sort by hit count
RgX_recip6 294
RgX_to_6 6342
apol2 1330
apol3 1330
apol5 1330
bpol2 1330
chk_pol 2660
cyclic 1246
deg1root 175
dicyclic 329
discpart 14
factmz 693
frac2s 17752
genus2localred 1344
genus2red 1330
get_maxc 455
get_red 196
gmin3 574
groupH 280
igusaj2 1330
igusaj4 1330
igusaj6 1330
labelm3 231
litredtp 252
min3 1540
my3val 2674
myval 49287
myval_zi 1337
myval_zi2 595
padicfactors 119
polval 3052
polymini 1617
polymini_zi 21
polymini_zi2 77
quadratic 21
quartic 77
stable_reduction 1344
tame 833
tame_1 21
tame_2 91
tame_234_init 203
tame_3 56
tame_4 56
tame_5 329
tame_567_init 609
tame_567_init_3 91
tame_6 189
tame_7 91
theta_3_zi 28
theta_3_zi2 77
theta_j 1785
zi_pow3mod 14
zv_snf 1337

Generated by: LCOV version 1.9