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.0 lcov report (development 29712-7c8a932571) Lines: 3881 3907 99.3 %
Date: 2024-11-15 09:08:45 Functions: 338 339 99.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
alg_complete 0
randcol 7
QM_invimZ 14
mk_C 14
alg_hilbert_asquare 21
algmatid 21
mk_R 21
algmodpr_mat 28
C_charpoly 35
C_trace 35
R_charpoly 35
R_trace 35
alg_quatramif 35
mk_H 35
C_norm 42
R_norm 42
R_tomatrix 42
algmakeintegral 42
CM_to_HM 49
change_Rgmultable 56
algaut 63
algnewprec 63
algnewprec_shallow 63
localcomplete 63
nextgen 63
HM_to_CM 70
algrelmultable 70
C_tomatrix 84
H_poleval 84
alg_get_splittingdata 84
alginvbasis 84
algsplittingdata 84
algsubalg 84
algtensor 84
extraprime 84
algb 91
algisquatalg 91
CC_to_HC 98
H_charpoly 98
H_neg 98
algbasistoquat 105
C_divl_i 112
algchar 112
dividesmod 112
genefrob 112
subcycloindep 112
alg_matrix 119
algbasistoalg_mat 119
alM_sub 126
algisdivl 126
alg_get_aut 133
C_inv 140
HC_to_CC 140
normfact_is_partial 140
algbasis 154
algsplittingfield 161
localextdegell 161
algramifiedplaces 168
C_random 182
alg_maximal 182
algalgtobasis_mat 182
algisinv 189
bnfgwgeneric 189
H_divl_i 203
alC_sub_i 210
computesplitting 217
findmaximalsubfield 217
frobeniusform 217
alg_csa_table 245
algneg 245
check_relmt 245
nfgwkummer 245
alghassei 252
algquattobasis 252
H_inv 259
alg_get_splitpol 259
algreal_dim 259
algisdivision 287
algbasis2mat 294
groupelts_algebra 294
list_to_regular_rep 294
algissimple 301
algmodprlift 301
algmultable 308
H_sqr 329
alggroup 329
alggroupcenter 329
alghasse 336
alg_complete0 343
clean_factor 343
computecnd 343
rnfcycaut 343
alghassef 357
algdisc 364
uispow2 364
algiscommutative 392
algissemisimple 392
alM_add 406
bnrgwsearch 413
get_phi0 413
alghasse_emb 427
H_norm 434
hassecoprime 441
alg_hasse 455
cyclicrelfrob0 455
is_place_emb 462
algdivr 469
algtrace_mat 469
Rgmultable 476
algmodprlift_i 511
algdisc_i 525
alg_hilbert 532
algisassociative 532
nfgrunwaldwang 532
algredcharpoly_i 546
eichlerprimepower 546
algredcharpoly 553
ismaximalsubfield 553
H_trace 567
algdegree 679
algalgmul_csa 686
colconcat 686
hassereduce 714
algmat_tomatrix 728
alC_add_i 756
algcomputehasse 777
alg_cyclic 791
conjclasses_algcenter 847
localhasse 882
algdivl 889
testsplits 905
algleftmultable_mat 910
get_vecsmall 973
H_random 980
algdivl_i2 1015
alg_is_asq 1113
algsub 1120
allauts 1120
factoredextchinese 1127
alg_maximal_primes 1155
algpdecompose_i 1175
hasseconvert 1274
algnorm 1309
alginv 1323
algnatmultable 1337
algmtK2Z_csa 1379
algisramified 1386
nfmakecoprime 1463
algredtrace 1470
backtrackfacto 1470
factoredextchinesetest 1470
alginv_i 1512
localextdeg 1575
alginit 1645
alghasse_pr 1652
algissplit 1652
algalgmul_cyc 1659
RgC_col2mat 1708
algmodpr_get_proj 1708
algmodpr_integral 1708
algmodpr_get_ff 1715
algdivl_i 1729
algmodpr_get_tau 1729
algmodpr_i 1729
alg_get_hasse_i 1736
alglatrighttransporter 1771
alglatlefttransporter 1778
algnattoalg_csa 1813
algmodpr 1841
algalgmultable_csa 1848
elementmultable 1848
checkhasse 1862
algeichlerbasis 2100
checkalgmodpr 2135
checkalgmodpr_i 2135
alghasse_0 2149
algindex 2191
algmodpr_get_m 2219
indexfromhasse 2219
algtype 2233
algalgmul 2345
H_tomatrix 2394
mat_algeltfromnf 2492
eichleridempotent 2499
eichlerprimepower_i 2499
alg_change_overorder_shallow 2634
alg_pmaximal 2638
algcenter_precompute 2638
algtrace 2681
algsimpledec 2730
algmodprinit 2793
cyclicrelfrob 2891
algmodpr_get_lift 3003
alg_get_basis 3255
algbasistoalg 3367
QM_invimZ_mod 3535
alglattransporter_i 3535
algsplit 3766
algmodpr_get_T 3801
algpdecompose0 3813
alg_get_hasse_f 3857
matrix_perm 3857
algmodpr_get_p 3948
algmodpr_get_pr 3948
alglatinter 4109
RgM_contract 4165
descend 4165
descend_i 4165
alg_get_splittingbasis 4347
alg_get_splittingbasisinv 4347
algbasissplittingmatrix_csa 4347
R_random 4466
try_descend 4585
algmodpr_get_k 5005
alg_idempotent 5047
algeltfromnf 5061
algcenter_p_projs 5251
algcenter_prad 5251
algeltfromnf_hnf 5251
algpradical_i 5251
alglatindex 5271
algdim 6160
algtableinit 6202
alg_finite_csa_split 6510
algleftordermodp 6511
Flm_invimage_init 7030
alglatadd 7588
algprimesubalg 8054
algsimpledec_ss 8159
alglatelement 8778
alg_decompose_from_facto 9379
alg_quotient 10845
alg_centralproj 11041
prepare_lat 11683
prepare_multipliers 11683
alglataddinter 11697
algcenter 11795
alg_ordermodp 11822
algmtK2Z_cyc 11942
algradical 12733
try_split 13057
algtracematrix 13167
algZmultable 13321
algmtK2Z 13321
alg_subalg 13936
cmp_algebra 14047
algnattoalg_cyc 14609
random_pm1 14636
algalgmultable_cyc 14707
Z_easyfactor 15053
algalgtonat_csa 15400
algalgmultable 16240
algnattoalg 16422
alg_get_auts 17248
alg_get_b 17332
try_fact 17492
alglatcontains 17528
H_add 17745
out_decompose 18681
RgC_contract 18746
algrandom 19985
algpow 20314
algleftmultable 22078
alg_decompose_total 22397
algmatbasis_ei 23884
algmat2basis 23961
algtomatrix 25109
alM_mul 25627
alg_decompose 26737
mat2col 28322
algpoleval 28769
algtablecenter 30473
algbasischarpoly 31431
algeltfromnf_i 31508
algcharpoly 31697
alglatsubset 33495
alg_quotient0 33601
image_keep_first 35544
algbasisrightmultable 41146
algbasismultable_Flm 41290
algtracei 41290
alglatmul 45612
_mul 48945
RgM_mat2col 49343
alglathnf 53487
alM_alC_mul_i 54502
algtableinit_i 54859
check_mt 54901
algadd 54999
check_mt_noid 55426
ZM_trace 58325
algtracebasis 58816
primlat 64351
algalgtonat_cyc 66354
mattocol 71978
algalgtonat 81754
alg_get_invbasis 81838
algalgtobasis 83553
alg_get_abssplitting 93682
H_mul 108129
_tablemul_ej 111811
_sqr 119599
alMrow_alC_mul_i 119651
algsqr 121986
elementabsmultable 149271
elementabsmultable_Fp 186640
checklat 186858
checklat_i 186858
FpM_trace 200282
H_compo 205639
_tablemul_ej_Fp 242039
alglat_get_primbasis 251188
_tablemul_Fp 290622
alglat_get_scalar 296779
algbasismultable 335911
elementabsmultable_Z 335911
alg_get_relmultable 386099
alg_get_dim 402078
H_model 462812
H_model0 462812
alg_get_center 518631
Flm_invimage_pre 519677
_tablemul_ej_Fl 519677
_tablemul 521612
alg_get_tracebasis 586361
algabstrace 586515
algbasismul 811548
algmul 817557
checkalg_i 1381305
checkalg 1508635
checkalgx 1871517
alg_model 1871678
alg_model0 1871678
alg_get_degree 2455598
alg_get_absdim 2516795
alg_get_multable 3640947
alg_type 9798347
alg_get_char 11349652
alg_get_splittingfield 25274896

Generated by: LCOV version 1.16