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.18.0 lcov report (development 29712-7c8a932571) Lines: 476 500 95.2 %
Date: 2024-11-15 09:08:45 Functions: 41 44 93.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
mktrivial 0
pardirpowerssum 0
pardirpowerssum0 0
err_direuler 28
dirpowerssum 133
dirpowerssum0 154
dirpowerssumfun 203
dirpowerssumfun_i 203
vecf 210
smalldirpowerssum 252
naivedirpowerssum 259
direuler 301
dirpowers 665
direuler_bad 672
vecpowuu 686
_Qtor 910
vR_get_vW 973
dirpowsuminit 1036
mk01 1036
mkdata 1036
pardirpowerssumfun 1085
pardirpowerssumfun_i 1085
Qtor 2373
vecmulsqlv 3171
direuler_Sbad 3724
pardireuler 4081
direulertou 10269
vecpowug 12024
get_needlog 12871
gp_callUp 13748
dirmuleuler_small 28700
parsqf_worker 29134
mksqfloop 29547
primelist 31157
parsumprimefun_worker 38134
sumprimeloop 38188
add4 48412
v2unpack 68368
v2pack 69344
dirmuleuler_large 308798
eval_bad 688303
direuler_factor 752066
mycallvec 5350268
smallfact 18197803

Generated by: LCOV version 1.16