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.1 lcov report (development 28676-df828f1c94) Lines: 337 348 96.8 %
Date: 2023-08-26 07:54:43 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 231
Hcol 301
Lfeq 1848
Linv 1848
RCpol 784
RgV_mul 3647
RgV_multwist 1512
dimeven 231
dimodd 70
div4 35
euler_sumdiv 95599
findNeven 616
findNodd 763
get_S_even 231
get_S_odd 70
lfunquadneg 2674
lfunquadneg_i 2674
mfDcoefs 301
modulareven 231
modularodd 70
muleven 231
mulodd 70
myinverseimage 301
myround 1848
sigsum 1274
sigsum12 273
sigsum16 301
sigsum4 119
sigsum8 210
sigsumm12 35
sigsumtwist 1015
sigsumtwist11 0
sigsumtwist12_6 63
sigsumtwist12_N 602
sigsumtwist12p0 161
sigsumtwist12pt 504
usefeq 1379
usumdivk_0_all 231
usumdivk_fact_all 2961
usumdivktwist_fact_all 1498
vecRCpol 301
vpowp 6447

Generated by: LCOV version 1.14