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) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30702-bddb8d6928) Lines: 560 578 96.9 %
Date: 2026-02-23 02:23:56 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
allstar 460
allstar2 20
atoe 5190
atoind 1340
atom 1340
aztoe 150
etoa 5615
etoindex 5130
fd 225
fd1 5130
fillL 75
filllg1 165
fillrec 7075
fillrecs 1790
findabv 675
findabvgen 2310
findabvgens 580
get_ibin 270
get_pab 270
log2zeta_bound 50
mtoevec 5140
polylogmult 0
polylogmult_interpolate 95
powersu 36010
revslice 20
vec_round 145
zetamult 140
zetamult_Akhilesh 50
zetamult_Zagier 100
zetamult_hash 195
zetamult_i 105
zetamult_interpolate 180
zetamult_interpolate2_i 30
zetamultall 90
zetamultall_i 75
zetamultconvert 10285
zetamultconvert_i 10495
zetamultdual 20
zetamultevec 145
zetamultstar_i 460
zparams 130

Generated by: LCOV version 1.16