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.13.0 lcov report (development 25829-9124a5a325) Lines: 356 367 97.0 %
Date: 2020-09-24 06:08:49 Functions: 44 45 97.8 %
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
eulerfrac 203
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 1911
Linv 1911
myround 1911
RgXV_rescale 2289
lfunquadneg 2674
lfunquadneg_i 2674
usumdivk_fact_all 2961
RgV_mul 3647
vpowp 6447
euler_sumdiv 95599

Generated by: LCOV version 1.13