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 28880-3b5364847c) Lines: 337 348 96.8 %
Date: 2023-12-01 07:53:15 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 231
dimeven 231
get_S_even 231
modulareven 231
muleven 231
usumdivk_0_all 231
sigsum12 273
Hcol 301
mfDcoefs 301
myinverseimage 301
sigsum16 301
vecRCpol 301
sigsumtwist12pt 504
sigsumtwist12_N 602
findNeven 616
findNodd 763
RCpol 784
sigsumtwist 1015
sigsum 1274
usefeq 1379
usumdivktwist_fact_all 1498
RgV_multwist 1512
Lfeq 1848
Linv 1848
myround 1848
lfunquadneg 2674
lfunquadneg_i 2674
usumdivk_fact_all 2961
RgV_mul 3647
vpowp 6447
euler_sumdiv 95599

Generated by: LCOV version 1.14