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 30074-db9b3c0519) Lines: 554 634 87.4 %
Date: 2025-03-13 08:38:27 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 6
F2m_invimage_i 6
F2m_inv_upper_1_ind 12
F2m_rowslice 12
F2m_F2c_gauss 24
F2v_slice 24
F2m_inflate 36
block_lanczos 36
F2m_gauss 48
F2m_rank 54
F2w_transpose_F2m 144
F2m_inv 162
F2m_to_mod 258
F2m_to_Flm 270
RgM_to_F2m 456
find_nonsingular_sub 833
identity_F2wB 833
F2w_F2Ms_mul 905
F2w_F2Ms_transmul 977
F2v_negimply_inplace 984
RgV_F2v_extract_shallow 1128
F2m_det_sp 1512
F2wB_addid_inplace 1666
F2w_mask_inplace 1666
F2v_inflate 1925
F2v_hamming 1932
F2w_transmul 2535
F2Ms_to_F2m 2841
F2Ms_ker 2877
F2w_F2wB_mul_add_inplace 3332
precompute_F2w_F2wB 3332
F2v_to_Flv 3366
F2c_to_mod 4032
F2v_equal0 4128
F2wB_mul 4998
F2v_subset 5436
Flv_to_F2v 5556
RgV_to_F2v 7866
F2v_and_inplace 12384
F2m_F2c_invimage 165751
F2m_ker 169408
matid_F2m 196262
F2m_gauss_sp 196310
F2m_gauss_pivot 302573
F2m_mul 610429
F2_get_col 644760
F2m_ker_sp 976914
F2m_to_ZM 1155581
const_F2v 1414403
F2m_F2c_mul_i 1852488
ZM_to_F2m 2491260
F2c_to_ZC 3346297
F2v_find_nonzero 5377375
ZV_to_F2v 9114403
F2v_add_inplace 22700985

Generated by: LCOV version 1.16