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-bordeaux.fr machine (x86_64 architecture), and agregate them in the final report:

The target is to exceed 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 - basemath - dirichlet.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 634 684 92.7 %
Date: 2024-03-28 08:06:56 Functions: 38 40 95.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
pardirpowerssum 0
pardirpowerssum0 0
smalldirpowerssumfunvec 14
smalldirpowerssumfunvec_i 14
err_direuler 28
dirpowsuminit 63
dirpowsummakez 63
dirpowsumprimeloop 63
_smalldirpowerssum 70
smalldirpowerssum 126
dirpowerssum 133
_Qtor 140
naivedirpowerssum 147
dirpowerssum0 154
dirpowerssumfun 203
vecmulsqlv 252
direuler 301
Qtor 315
dirpowsumsqfloop 413
dirpowers 665
direuler_bad 672
vecpowuu 686
pardirpowerssumfun 854
getscal 1392
gmulvecsqlv 2226
direuler_Sbad 3724
pardireuler 4081
direulertou 10269
vecpowug 12024
gp_callUp 13818
parsqfboth_worker 17157
dirmuleuler_small 28700
primelist 31157
parsumprimeWfunboth_worker 37921
get_needlog 50569
mycallvec 292547
dirmuleuler_large 308798
eval_bad 688303
direuler_factor 752066
smallfact 10693433

Generated by: LCOV version 1.14