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.1 lcov report (development 28880-3b5364847c) Lines: 435 454 95.8 %
Date: 2023-12-01 07:53:15 Functions: 28 28 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
err_direuler 28
dirpowsuminit 63
dirpowsummakez 63
dirpowsumprimeloop 63
smalldirpowerssum 126
dirpowerssum 133
naivedirpowerssum 147
dirpowerssum0 154
dirpowerssumfun 203
direuler 252
vecmulsqlv 252
Qtor 357
dirpowsumsqfloop 413
direuler_bad 623
dirpowers 665
vecpowuu 686
direuler_Sbad 3724
pardireuler 4081
direulertou 10171
get_needlog 11842
vecpowug 11954
gp_callUp 13846
dirmuleuler_small 28518
primelist 31157
smallfact 245126
dirmuleuler_large 308658
eval_bad 687827
direuler_factor 751590

Generated by: LCOV version 1.14