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.16.2 lcov report (development 29115-f22e516b23) Lines: 555 634 87.5 %
Date: 2024-03-28 08:06:56 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_inv 35
F2m_inflate 53
block_lanczos 54
F2m_rank 63
F2m_to_mod 133
F2w_transpose_F2m 212
F2m_to_Flm 308
RgM_to_F2m 336
F2v_negimply_inplace 602
F2Ms_to_F2m 910
F2Ms_ker 963
RgV_F2v_extract_shallow 1218
find_nonsingular_sub 1259
identity_F2wB 1259
F2w_F2Ms_mul 1366
F2w_F2Ms_transmul 1472
F2m_det_sp 1631
F2v_hamming 1708
F2wB_addid_inplace 2516
F2w_mask_inplace 2516
F2v_inflate 2892
F2c_to_mod 3115
F2v_subset 3171
F2v_to_Flv 3654
F2w_transmul 3829
F2v_equal0 4816
F2w_F2wB_mul_add_inplace 5032
precompute_F2w_F2wB 5032
Flv_to_F2v 6027
F2wB_mul 7548
RgV_to_F2v 7798
F2v_and_inplace 14448
F2m_F2c_invimage 193102
F2m_ker 194952
matid_F2m 224773
F2m_gauss_sp 224807
F2m_gauss_pivot 345460
F2m_mul 674845
F2_get_col 718320
F2m_ker_sp 1134003
F2m_to_ZM 1303522
const_F2v 1633763
F2m_F2c_mul_i 1782951
ZM_to_F2m 2815266
F2c_to_ZC 3485661
F2v_find_nonzero 6059667
ZV_to_F2v 9617144
F2v_add_inplace 22063095

Generated by: LCOV version 1.14