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 - zetamult.c (source / functions) Coverage Total Hit
Test: PARI/GP v2.18.1 lcov report (development 31041-bd73e9fcdd) Lines: 97.1 % 592 575
Test Date: 2026-07-22 22:45:42 Functions: 97.8 % 45 44
Legend: Lines:     hit not hit

Function Name Sort by function name Hit count Sort by function hit count
polylogmult 0
allstar2 28
revslice 28
zetamultdual 28
zetamult_interpolate2_i 42
log2zeta_bound 70
zetamult_Akhilesh 70
fillL 105
zetamultall_i 105
zetamultall 126
polylogmult_interpolate 133
zetamult_Zagier 140
zetamult_i 147
zparams 182
zetamult 196
vec_round 203
zetamultevec 203
aztoe 210
filllg1 231
zetamult_interpolate 252
zetamult_hash 273
fd 315
get_ibin 378
get_pab 378
powers2 378
veccgetr 525
allstar 644
zetamultstar_i 644
findabvgens 812
findabv 945
_addrr 1575
atoind 1876
atom 1876
fillrecs 2506
findabvgen 3234
etoindex 7182
fd1 7182
mtoevec 7196
atoe 7266
etoa 7861
fillrec 9905
zetamultconvert 14399
zetamultconvert_i 14693
powersu2 24829
powersu 25207

Generated by: LCOV version 2.0-1