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 - F2v.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 30744-52374ab6cf) Lines: 555 634 87.5 %
Date: 2026-03-17 09:26:37 Functions: 55 68 80.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2m_F2c_mul 0
F2m_deplin 0
F2m_det 0
F2m_invimage 0
F2m_powu 0
F2m_row 0
F2m_to_F2Ms 0
F2m_transpose 0
F2v_dotproduct 0
F2v_or_inplace 0
Flm_to_F2m 0
_F2m_mul 0
_F2m_sqr 0
F2m_inv_upper_1 7
F2m_invimage_i 7
F2m_F2c_gauss 14
F2m_inv_upper_1_ind 14
F2m_rowslice 14
F2v_slice 28
F2m_gauss 35
F2m_inflate 58
block_lanczos 59
F2m_rank 63
F2m_inv 189
F2w_transpose_F2m 232
F2m_to_mod 287
F2m_to_Flm 315
RgM_to_F2m 490
F2v_negimply_inplace 1148
RgV_F2v_extract_shallow 1316
find_nonsingular_sub 1506
identity_F2wB 1506
F2w_F2Ms_mul 1623
F2w_F2Ms_transmul 1739
F2m_det_sp 1764
F2v_hamming 2254
F2wB_addid_inplace 3010
F2w_mask_inplace 3010
F2v_inflate 3250
F2Ms_to_F2m 3336
F2Ms_ker 3394
F2v_to_Flv 3927
F2w_transmul 4575
F2c_to_mod 4690
F2v_equal0 4816
F2w_F2wB_mul_add_inplace 6020
precompute_F2w_F2wB 6020
F2v_subset 6342
Flv_to_F2v 6482
F2wB_mul 9030
RgV_to_F2v 9079
F2v_and_inplace 14448
F2m_F2c_invimage 195933
F2m_ker 200254
matid_F2m 230869
F2m_gauss_sp 230903
F2m_gauss_pivot 356501
F2m_mul 724272
F2_get_col 758048
F2m_ker_sp 1149164
F2m_to_ZM 1364507
const_F2v 1664938
F2m_F2c_mul_i 2193951
ZM_to_F2m 2944487
F2c_to_ZC 3950232
F2v_find_nonzero 6328715
ZV_to_F2v 10763006
F2v_add_inplace 27016790

Generated by: LCOV version 1.16