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.16.2 lcov report (development 29115-f22e516b23) Lines: 562 580 96.9 %
Date: 2024-03-29 08:06:26 Functions: 40 41 97.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by 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
allstar 644
zetamultstar_i 644
findabvgens 812
findabv 945
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
powersu 50414

Generated by: LCOV version 1.14