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 30076-15f6073f4c) Lines: 554 634 87.4 %
Date: 2025-03-14 09:20:25 Functions: 55 68 80.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2Ms_ker 3369
F2Ms_to_F2m 3323
F2_get_col 751993
F2c_to_ZC 3902776
F2c_to_mod 4704
F2m_F2c_gauss 28
F2m_F2c_invimage 193414
F2m_F2c_mul 0
F2m_F2c_mul_i 2160599
F2m_deplin 0
F2m_det 0
F2m_det_sp 1764
F2m_gauss 56
F2m_gauss_pivot 353015
F2m_gauss_sp 229028
F2m_inflate 46
F2m_inv 189
F2m_inv_upper_1 7
F2m_inv_upper_1_ind 14
F2m_invimage 0
F2m_invimage_i 7
F2m_ker 197709
F2m_ker_sp 1140079
F2m_mul 712070
F2m_powu 0
F2m_rank 63
F2m_row 0
F2m_rowslice 14
F2m_to_F2Ms 0
F2m_to_Flm 315
F2m_to_ZM 1348112
F2m_to_mod 301
F2m_transpose 0
F2v_add_inplace 26485411
F2v_and_inplace 14448
F2v_dotproduct 0
F2v_equal0 4816
F2v_find_nonzero 6278528
F2v_hamming 2254
F2v_inflate 2512
F2v_negimply_inplace 1148
F2v_or_inplace 0
F2v_slice 28
F2v_subset 6342
F2v_to_Flv 3927
F2wB_addid_inplace 2204
F2wB_mul 6612
F2w_F2Ms_mul 1194
F2w_F2Ms_transmul 1286
F2w_F2wB_mul_add_inplace 4408
F2w_mask_inplace 2204
F2w_transmul 3352
F2w_transpose_F2m 184
Flm_to_F2m 0
Flv_to_F2v 6482
RgM_to_F2m 532
RgV_F2v_extract_shallow 1316
RgV_to_F2v 9177
ZM_to_F2m 2905906
ZV_to_F2v 10627460
_F2m_mul 0
_F2m_sqr 0
block_lanczos 46
const_F2v 1650343
find_nonsingular_sub 1102
identity_F2wB 1102
matid_F2m 228971
precompute_F2w_F2wB 4408

Generated by: LCOV version 1.16