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 - F3v.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30702-bddb8d6928) Lines: 152 182 83.5 %
Date: 2026-02-23 02:23:56 Functions: 23 30 76.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F3m_ker 0
F3m_row 0
F3m_to_Flm 0
F3m_transpose 0
F3v_to_Flv 0
Flm_to_F3m 0
Flv_to_F3v 0
F3m_mul 132
F3m_to_mod 198
F3m_F3c_mul_i 276
RgM_to_F3m 330
F3c_to_mod 810
RgV_to_F3v 1662
F3m_to_ZM 72272
zero_F3m_copy 72338
ZM_to_F3m 135394
F3m_ker_sp 135460
F3c_to_ZC 193441
zero_F3v 194251
F3v_add_inplace 241155
F3v_sub_inplace 292865
F3v_clear 366382
F3_add 470183
F3_sub 528573
ZV_to_F3v 630470
F3v_set 909622
F3m_setneg 945678
F3v_setneg 945678
bitswap 2526085
F3v_coeff 4764208

Generated by: LCOV version 1.16