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 - lfunquad.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 337 348 96.8 %
Date: 2024-03-28 08:06:56 Functions: 42 43 97.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Dneg 70
Dpos 259
Hcol 329
Lfeq 1848
Linv 1848
RCpol 812
RgV_mul 3801
RgV_multwist 1512
dimeven 259
dimodd 70
div4 35
euler_sumdiv 95739
findNeven 644
findNodd 763
get_S_even 259
get_S_odd 70
lfunquadneg 3241
lfunquadneg_i 3241
mfDcoefs 357
modulareven 259
modularodd 70
muleven 259
mulodd 70
myinverseimage 329
myround 1848
sigsum 1386
sigsum12 273
sigsum16 357
sigsum4 119
sigsum8 210
sigsumm12 35
sigsumtwist 1015
sigsumtwist11 0
sigsumtwist12_6 63
sigsumtwist12_N 602
sigsumtwist12p0 161
sigsumtwist12pt 504
usefeq 1407
usumdivk_0_all 259
usumdivk_fact_all 3115
usumdivktwist_fact_all 1498
vecRCpol 329
vpowp 6587

Generated by: LCOV version 1.14