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.18.0 lcov report (development 29712-7c8a932571) Lines: 337 348 96.8 %
Date: 2024-11-15 09:08:45 Functions: 42 43 97.7 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.16