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.0 lcov report (development 29712-7c8a932571) Lines: 560 578 96.9 %
Date: 2024-11-15 09:08:45 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.16