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 - modules - algebras.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.1 lcov report (development 29950-285c5b69ed) Lines: 3917 3943 99.3 %
Date: 2025-02-05 09:09:51 Functions: 342 343 99.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
CC_to_HC 98
CM_to_HM 49
C_charpoly 35
C_divl_i 112
C_inv 140
C_norm 42
C_random 182
C_tomatrix 84
C_trace 35
Flm_invimage_init 7492
Flm_invimage_pre 545409
FpM_trace 207506
HC_to_CC 140
HM_to_CM 70
H_add 17745
H_charpoly 98
H_compo 205639
H_divl_i 203
H_inv 259
H_invol 77
H_model 462861
H_model0 462861
H_mul 108129
H_neg 98
H_norm 434
H_poleval 84
H_random 980
H_sqr 329
H_tomatrix 2415
H_trace 567
QM_invimZ 14
QM_invimZ_mod 3535
R_charpoly 35
R_norm 42
R_random 4466
R_tomatrix 42
R_trace 35
RgC_col2mat 1708
RgC_contract 18746
RgM_contract 4165
RgM_mat2col 49343
Rgmultable 476
ZM_trace 62210
Z_easyfactor 15200
_mul 50072
_sqr 121678
_tablemul 521724
_tablemul_Fp 294206
_tablemul_ej 111811
_tablemul_ej_Fl 545409
_tablemul_ej_Fp 242039
alC_add_i 756
alC_sub_i 210
alM_add 406
alM_alC_mul_i 54502
alM_mul 25627
alM_sub 126
alMrow_alC_mul_i 119651
algZmultable 14147
alg_centralproj 11601
alg_change_overorder_shallow 2914
alg_complete 0
alg_complete0 364
alg_csa_table 259
alg_cyclic 840
alg_decompose 27381
alg_decompose_from_facto 9610
alg_decompose_total 23041
alg_finite_csa_split 6510
alg_get_absdim 2532309
alg_get_abssplitting 96622
alg_get_aut 1029
alg_get_auts 18907
alg_get_b 18095
alg_get_basis 3276
alg_get_center 526093
alg_get_char 11444400
alg_get_degree 2467008
alg_get_dim 404332
alg_get_hasse_f 3948
alg_get_hasse_i 1785
alg_get_invbasis 83434
alg_get_invol 3152
alg_get_multable 3682384
alg_get_relmultable 388052
alg_get_splitpol 294
alg_get_splittingbasis 4347
alg_get_splittingbasisinv 4347
alg_get_splittingdata 84
alg_get_splittingfield 25449578
alg_get_tracebasis 607648
alg_hasse 476
alg_hilbert 567
alg_hilbert_asquare 28
alg_idempotent 5047
alg_insert_quatconj 896
alg_is_asq 1148
alg_matrix 126
alg_maximal 189
alg_maximal_primes 1225
alg_model 1879919
alg_model0 1879919
alg_ordermodp 12662
alg_pmaximal 2841
alg_quatramif 42
alg_quotient 11251
alg_quotient0 35127
alg_subalg 14167
alg_type 9865216
algabstrace 607802
algadd 54999
algalgmul 2345
algalgmul_csa 686
algalgmul_cyc 1659
algalgmultable 17066
algalgmultable_csa 1960
algalgmultable_cyc 15421
algalgtobasis 85275
algalgtobasis_mat 182
algalgtonat 83350
algalgtonat_csa 15554
algalgtonat_cyc 67796
algaut 63
algb 91
algbasis 154
algbasis2mat 294
algbasischarpoly 31782
algbasismul 815244
algbasismultable 347266
algbasismultable_Flm 43866
algbasisrightmultable 41160
algbasissplittingmatrix_csa 4347
algbasistoalg 3388
algbasistoalg_mat 119
algbasistoquat 126
algcenter 11795
algcenter_p_projs 5727
algcenter_prad 5727
algcenter_precompute 2841
algchar 112
algcharpoly 32013
algcomputehasse 826
algdegree 679
algdim 6216
algdisc 364
algdisc_i 532
algdivl 889
algdivl_i 1729
algdivl_i2 1015
algdivr 469
algeichlerbasis 2100
algeltfromnf 5117
algeltfromnf_hnf 5727
algeltfromnf_i 33069
alggroup 329
alggroupcenter 329
alghasse 336
alghasse_0 2149
alghasse_emb 427
alghasse_pr 1652
alghassef 357
alghassei 252
algindex 2191
alginit 1750
alginv 1323
alginv_i 1512
alginvbasis 84
alginvol 294
algisassociative 532
algiscommutative 392
algisdivision 287
algisdivl 126
algisinv 189
algisquatalg 91
algisramified 1386
algissemisimple 392
algissimple 301
algissplit 1652
alglat_get_primbasis 251188
alglat_get_scalar 296779
alglatadd 7588
alglataddinter 11697
alglatcontains 17528
alglatelement 8778
alglathnf 53487
alglatindex 5271
alglatinter 4109
alglatlefttransporter 1778
alglatmul 45612
alglatrighttransporter 1771
alglatsubset 33495
alglattransporter_i 3535
algleftmultable 22099
algleftmultable_mat 910
algleftordermodp 7162
algmakeintegral 42
algmat2basis 23961
algmat_tomatrix 728
algmatbasis_ei 23884
algmatid 21
algmodpr 1841
algmodpr_get_T 3801
algmodpr_get_ff 1715
algmodpr_get_k 5005
algmodpr_get_lift 3003
algmodpr_get_m 2219
algmodpr_get_p 3948
algmodpr_get_pr 3948
algmodpr_get_proj 1708
algmodpr_get_tau 1729
algmodpr_i 1729
algmodpr_integral 1708
algmodpr_mat 28
algmodprinit 2793
algmodprlift 301
algmodprlift_i 511
algmtK2Z 14147
algmtK2Z_csa 1491
algmtK2Z_cyc 12656
algmul 819174
algmultable 308
algnatmultable 1421
algnattoalg 17269
algnattoalg_csa 1925
algnattoalg_cyc 15344
algneg 245
algnewprec 84
algnewprec_shallow 84
algnorm 1309
algpdecompose0 4177
algpdecompose_i 1336
algpoleval 29014
algpow 21091
algpradical_i 5727
algprimesubalg 8579
algquattobasis 266
algradical 13377
algramifiedplaces 168
algrandom 20104
algreal_dim 259
algredcharpoly 553
algredcharpoly_i 546
algredtrace 1470
algrelmultable 70
algsimpledec 2730
algsimpledec_ss 8684
algsplit 3766
algsplittingdata 84
algsplittingfield 161
algsqr 124065
algsub 1120
algsubalg 84
algtablecenter 31411
algtableinit 6209
algtableinit_i 56623
algtensor 84
algtomatrix 25109
algtrace 2681
algtrace_mat 469
algtracebasis 60944
algtracei 43866
algtracematrix 13818
algtype 2254
allauts 1190
backtrackfacto 1596
bnfgwgeneric 196
bnrgwsearch 427
change_Rgmultable 56
check_mt 56665
check_mt_noid 57190
check_relmt 259
checkalg 1518653
checkalg_i 1391316
checkalgmodpr 2135
checkalgmodpr_i 2135
checkalgx 1879751
checkhasse 1974
checklat 186858
checklat_i 186858
clean_factor 364
cmp_algebra 14278
colconcat 728
computecnd 364
computesplitting 231
conjclasses_algcenter 847
cyclicrelfrob 3059
cyclicrelfrob0 483
descend 4165
descend_i 4165
dividesmod 126
eichleridempotent 2499
eichlerprimepower 546
eichlerprimepower_i 2499
elementabsmultable 152246
elementabsmultable_Fp 195020
elementabsmultable_Z 347266
elementmultable 1960
extraprime 84
factoredextchinese 1232
factoredextchinesetest 1596
findmaximalsubfield 231
frobeniusform 231
genefrob 119
get_phi0 427
get_vecsmall 1015
groupelts_algebra 294
hasseconvert 1337
hassecoprime 462
hassereduce 756
image_keep_first 36895
indexfromhasse 2219
is_place_emb 462
ismaximalsubfield 588
list_to_regular_rep 294
localcomplete 70
localextdeg 1589
localextdegell 168
localhasse 973
mat2col 28322
mat_algeltfromnf 2492
matrix_perm 3857
mattocol 79006
mk_C 21
mk_H 42
mk_R 28
nextgen 70
nfgrunwaldwang 553
nfgwkummer 259
nfmakecoprime 1554
normfact_is_partial 154
out_decompose 19143
prepare_lat 11683
prepare_multipliers 11683
primlat 64351
randcol 7
random_pm1 14867
rnfcycaut 364
subcycloindep 119
testsplits 947
try_descend 4585
try_fact 17808
try_split 13057
uispow2 371

Generated by: LCOV version 1.16