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 - Flv.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.14.0 lcov report (development 25892-64329ab65e) Lines: 730 759 96.2 %
Date: 2020-10-28 06:08:44 Functions: 57 61 93.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flm_deplin 0
Flm_det 0
Flm_intersect 0
Flm_invimage 0
Flm_inv_upper_1 14
Flm_Flc_gauss 21
Flm_invimage_CUP 21
Flm_inv_upper_1_ind 28
Flm_invimage_i 42
Flm_gauss 63
Flm_det_gauss_OK 1743
Flm_rank 15183
Flm_inv 23016
Flm_deplin_echelon 23246
Flm_det_CUP 35581
Flm_gauss_sp_OK 35926
Flm_Flc_invimage 40292
Flm_gauss_CUP 48536
Flm_det_gauss 50565
Flm_to_ZM_inplace 56166
Flm_ker 60352
Flm_pivots_CUP 74562
Flm_det_i 86146
Flm_det_sp 86146
Flc_to_ZC_inplace 123378
Flm_ker_gauss_OK 129356
Fl_get_col_OK 134013
Flm_ker_echelon 150684
Flm_adjoint 175612
_Fl_add 177664
Flm_gauss_pivot 199951
Flm_gauss_from_CUP 224121
Flv_to_ZV 257067
Flm_ker_gauss 272936
Flm_pivots 274513
Flm_ker_sp 386513
Flm_inv_sp 418097
Flm_gauss_sp_i 438005
Flm_inv_i 441113
Flm_ker_i 446865
Flm_gauss_sp 458968
_Fl_add_OK 559917
indexcompl 572085
Flm_echelon_gauss 638298
Flm_solve_upper_1 847815
Flm_lsolve_lower_unit_2 984295
Flm_rsolve_upper_2 1081368
Fl_get_col 1093347
Flm_echelon_pre 1099799
Flm_lsolve_upper_2 1295792
Flm_CUP_pre 1311299
Flm_CUP_basecase 1461109
_Fl_addmul_OK 2035710
Flm_rsolve_lower_unit_2 2232429
Flm_lsolve_lower_unit_pre 2431831
Flm_rsolve_upper_pre 2715036
Flm_lsolve_upper_pre 3030917
Flm_rsolve_lower_unit_pre 5244312
_Fl_addmul 5413110
Flm_to_ZM 8747704
Flc_to_ZC 23233200

Generated by: LCOV version 1.13