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 29420-55f63b8cfe) Lines: 583 624 93.4 %
Date: 2024-07-03 09:03:24 Functions: 42 44 95.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Qtor 427
_Qtor 56
add4 1435
direuler 301
direuler_Sbad 3724
direuler_bad 672
direuler_factor 752066
direulertou 10269
dirmuleuler_large 308798
dirmuleuler_small 28700
dirpowers 665
dirpowerssum 133
dirpowerssum0 154
dirpowerssumfun 203
dirpowerssumfun_i 203
dirpowsuminit 63
dirpowsummakez 63
dirpowsumprimeloop 63
dirpowsumsqfloop 413
err_direuler 28
eval_bad 688303
get_needlog 12871
gmulvecsqlv 2919
gp_callUp 13748
mycallvec 5351946
naivedirpowerssum 259
onef 68887
pardireuler 4081
pardirpowerssum 0
pardirpowerssum0 0
pardirpowerssumfun 1085
pardirpowerssumfun_i 1085
parsqfboth_worker 29133
parsumprimeWfunboth_worker 38124
primelist 31157
smalldirpowerssum 252
smallfact 18238914
sumprimeloop 38164
v2pack 70383
v2unpack 87584
vecf 210
vecmulsqlv 252
vecpowug 12024
vecpowuu 686

Generated by: LCOV version 1.16