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.1 lcov report (development 28676-df828f1c94) Lines: 1713 1802 95.1 %
Date: 2023-08-26 07:54:43 Functions: 139 156 89.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZX_to_monic 0
checksqmat 0
elt_galoismatrixapply 0
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
idealramfrobenius 0
nf_get_allroots 0
nfinitred2 0
nfsplitting 0
polred2 0
polredabs2 0
polredabsall 0
pr_galoismatrixapply 0
smallpolred 0
smallpolred2 0
vecgaloismatrixapply 0
pr_galoisapply 7
pr_make 7
vecgaloisapply 7
polred 14
polredord 21
poltomonic 42
badp 49
elt_galoisapply 49
idealfrobenius_aut 56
idealfrobenius 63
polred0 70
nfisisom 77
Polred 84
get_bnfpol 112
idealramgroups 112
nfisincl 112
nfnewprec 154
nfinitred 182
rnfpolredabs 231
nfpolred 273
tests_OK 283
rnfpolredbest 357
idealramgroupswild 497
incl_disc 531
rnfpolred_i 588
idealramfrobenius_aut 616
v9checkgal 658
v13checkgchar 798
nfisincl_from_fact_frac 1232
nfsplitting_auto 1232
RgFV_to_FlxqV 1239
nfgaloispermtobasis 1379
nfsplitting_composite 1421
idealquasifrob 1435
nfsplitting0 1435
get_nfindex 1589
idealinertiagroup 1834
idealramgroupstame 1897
idealramgroups_aut 2394
gal_check_pol 2457
nfcertify 3101
primes_certify 3101
polredbest 3514
polredbest_i 3871
nfinit_basic_partial 3906
polredbest_aux 4046
filter 4088
polred_aux 4122
nfinit 6128
zk_galoisapplymod 6153
nfisincl_from_fact 7196
nfisincl0 7308
partmap_reverse 7315
tschirnhaus 7569
partmap_reverse_frac 8085
partmap_reverse_frac_worker 8085
RgF_to_Flxq 8092
get_aut 8140
FpX_FpC_nfpoleval 8722
ZXX_Q_mul 8897
nfinit0 9943
check_ZKmodule 10547
check_ZKmodule_i 10603
nfpoleval 11151
ZM_image_shallow 12701
polredabs 13398
polredabs0 13853
remove_duplicates 13853
nfgaloismatrixapply 13993
findmindisc 14070
chk_gen_init 14071
polredabs_i 14077
nfinit_basic_flag 14147
polred_init 18157
checkabgrp 19789
get_bnf 22043
set_mulid 22452
make_Tr 27868
chk_gen_prec 32214
ZX_cmp 32904
v11checkbnf 37218
v10checknf 39480
rawchecknf 45401
rawcheckbnf 46409
ZX_is_better 54738
nfnewprec_shallow 59518
nf_basden 59546
embed_T2 71183
get_red_G 72788
nftyp 80605
nfinit_complete 83348
nfmaxord_to_nf 83352
get_Tr 83353
nf_multable 83354
nf_input_type 85212
nfinit_basic 85216
nfgaloismatrix 94512
QX_table_nfpoleval 94961
ZC_galoisapply 95158
ZX_canon_neg 96333
set_LLL_basis 101236
chk_gen 102376
get_polchar 102376
typv6 110810
get_nf 115507
galoisapply 126424
try_polmin 136060
cmpii_polred 140363
real_norm 164450
nfmaxord_complete 166701
nffp_init 174290
get_bas_den 202096
get_roots 202685
make_G 233824
make_M 233827
make_M_G 233827
get_pol 262195
prec_fix 266042
checknfelt_mod 267891
checkrnf 288332
v13checkrnf 288920
checkrnf_i 298275
quicktrace 384825
get_nfpol 667334
ZX_Q_normalize 840756
ZX_primitive_to_monic 841075
ZX_Z_normalize 843694
nf_get_prec 894002
checkbid 1379760
checkbid_i 1636432
checkbnr 1819852
checkbnr_i 2002944
checkbnf 3230002
checkbnf_i 5237854
ZX_Q_mul 5755410
embed_norm 15257206
complex_norm 17658658
checknf 76502464
checknf_i 78385390

Generated by: LCOV version 1.14