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 - base1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 1713 1803 95.0 %
Date: 2024-05-02 08:08:24 Functions: 139 156 89.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpX_FpC_nfpoleval 8824
Polred 84
QX_table_nfpoleval 94938
RgFV_to_FlxqV 1239
RgF_to_Flxq 8092
ZC_galoisapply 95136
ZM_image_shallow 12690
ZXX_Q_mul 8897
ZX_Q_mul 6356785
ZX_Q_normalize 840940
ZX_Z_normalize 843894
ZX_canon_neg 89019
ZX_cmp 29969
ZX_is_better 51611
ZX_primitive_to_monic 841256
ZX_to_monic 0
badp 49
check_ZKmodule 10519
check_ZKmodule_i 10575
checkabgrp 19817
checkbid 1381090
checkbid_i 1637980
checkbnf 3232555
checkbnf_i 5242501
checkbnr 1821641
checkbnr_i 2004764
checknf 103987721
checknf_i 107008253
checknfelt_mod 555838
checkrnf 298007
checkrnf_i 308167
checksqmat 0
chk_gen 98079
chk_gen_init 14042
chk_gen_prec 32165
cmpii_polred 125762
complex_norm 34898815
elt_galoisapply 49
elt_galoismatrixapply 0
embed_T2 70947
embed_norm 18933724
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
filter 4095
findmindisc 14049
gal_check_pol 2485
galoisapply 126374
get_Tr 83623
get_aut 8162
get_bas_den 202510
get_bnf 22099
get_bnfpol 112
get_nf 115542
get_nfindex 1666
get_nfpol 667334
get_pol 260235
get_polchar 98079
get_red_G 72847
get_roots 234731
idealfrobenius 77
idealfrobenius_aut 70
idealinertiagroup 1834
idealquasifrob 1463
idealramfrobenius 0
idealramfrobenius_aut 616
idealramgroups 126
idealramgroups_aut 2408
idealramgroupstame 1911
idealramgroupswild 497
incl_disc 539
make_G 265895
make_M 265907
make_M_G 265899
make_Tr 27972
nf_basden 91311
nf_get_allroots 0
nf_get_prec 971473
nf_input_type 85464
nf_multable 83624
nfcertify 3101
nffp_init 174596
nfgaloismatrix 94527
nfgaloismatrixapply 13909
nfgaloispermtobasis 1379
nfinit 6226
nfinit0 10160
nfinit_basic 85465
nfinit_basic_flag 14119
nfinit_basic_partial 3906
nfinit_complete 83619
nfinitred 182
nfinitred2 0
nfisincl 112
nfisincl0 7308
nfisincl_from_fact 7196
nfisincl_from_fact_frac 1232
nfisisom 77
nfmaxord_complete 167238
nfmaxord_to_nf 83620
nfnewprec 154
nfnewprec_shallow 91283
nfpoleval 11151
nfpolred 280
nfsplitting 0
nfsplitting0 1435
nfsplitting_auto 1232
nfsplitting_composite 1421
nftyp 274337
partmap_reverse 7315
partmap_reverse_frac 8085
partmap_reverse_frac_worker 8085
polred 14
polred0 70
polred2 0
polred_aux 4130
polred_init 18137
polredabs 13377
polredabs0 13825
polredabs2 0
polredabs_i 14049
polredabsall 0
polredbest 3514
polredbest_aux 4053
polredbest_i 3871
polredord 21
poltomonic 42
pr_galoisapply 7
pr_galoismatrixapply 0
pr_make 7
prec_fix 298062
primes_certify 3101
quicktrace 381728
rawcheckbnf 46599
rawchecknf 45640
real_norm 160658
remove_duplicates 13825
rnfpolred_i 588
rnfpolredabs 231
rnfpolredbest 357
set_LLL_basis 101478
set_mulid 22303
smallpolred 0
smallpolred2 0
tests_OK 287
try_polmin 136083
tschirnhaus 7649
typv6 113169
v10checknf 233037
v11checkbnf 37436
v13checkgchar 819
v13checkrnf 298609
v9checkgal 658
vecgaloisapply 7
vecgaloismatrixapply 0
zk_galoisapplymod 6255

Generated by: LCOV version 1.14