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 29419-8afb0ed749) Lines: 1716 1816 94.5 %
Date: 2024-07-02 09:03:41 Functions: 139 158 88.0 %
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
rnfnewprec 0
rnfnewprec_shallow 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 70
polred0 70
idealfrobenius 77
nfisisom 77
Polred 84
get_bnfpol 112
nfisincl 112
idealramgroups 126
nfnewprec 161
nfinitred 182
rnfpolredabs 266
nfpolred 280
tests_OK 287
rnfpolredbest 357
idealramgroupswild 497
incl_disc 539
idealramfrobenius_aut 616
rnfpolred_i 623
v9checkgal 665
v13checkgchar 826
nfisincl_from_fact_frac 1232
nfsplitting_auto 1232
RgFV_to_FlxqV 1239
nfgaloispermtobasis 1379
nfsplitting_composite 1421
nfsplitting0 1435
idealquasifrob 1463
get_nfindex 1666
idealinertiagroup 1834
idealramgroupstame 1911
idealramgroups_aut 2408
gal_check_pol 2485
nfcertify 3101
primes_certify 3101
polredbest 3514
polredbest_i 3871
nfinit_basic_partial 3906
polredbest_aux 4053
filter 4095
polred_aux 4130
nfinit 6240
zk_galoisapplymod 6255
nfisincl_from_fact 7203
nfisincl0 7315
partmap_reverse 7322
tschirnhaus 7622
partmap_reverse_frac 8083
partmap_reverse_frac_worker 8083
RgF_to_Flxq 8092
get_aut 8162
FpX_FpC_nfpoleval 8824
ZXX_Q_mul 8897
nfinit0 10244
check_ZKmodule 10869
check_ZKmodule_i 10925
nfpoleval 11151
ZM_image_shallow 12989
polredabs 13377
nfgaloismatrixapply 13909
polredabs0 13944
remove_duplicates 13944
chk_gen_init 14196
findmindisc 14203
polredabs_i 14203
nfinit_basic_flag 14273
polred_init 18291
set_mulid 22557
checkabgrp 24108
get_bnf 26390
make_Tr 28143
ZX_cmp 30220
chk_gen_prec 32473
v11checkbnf 37457
rawchecknf 45668
rawcheckbnf 46613
ZX_is_better 52149
embed_T2 71886
get_red_G 72968
nfinit_complete 83764
get_Tr 83770
nf_multable 83771
nfmaxord_to_nf 83771
nfinit_basic 85759
nf_input_type 85760
ZX_canon_neg 89772
nfnewprec_shallow 90625
nf_basden 90653
nfgaloismatrix 94582
QX_table_nfpoleval 95012
ZC_galoisapply 95205
chk_gen 100381
get_polchar 100381
set_LLL_basis 101783
get_nf 115549
typv6 124033
galoisapply 126444
cmpii_polred 127903
try_polmin 136084
real_norm 167014
nfmaxord_complete 167542
nffp_init 175024
get_bas_den 203102
get_roots 232616
v10checknf 233037
get_pol 263855
make_G 265667
make_M 265669
make_M_G 265669
nftyp 280938
checkrnf 298049
prec_fix 298138
v13checkrnf 298658
checkrnf_i 308293
quicktrace 386150
checknfelt_mod 556855
get_nfpol 667437
ZX_Q_normalize 841219
ZX_primitive_to_monic 841536
ZX_Z_normalize 844167
nf_get_prec 1066085
checkbid 1383551
checkbid_i 1640505
checkbnr 1824218
checkbnr_i 2007351
checkbnf 3236072
checkbnf_i 5248615
ZX_Q_mul 6395393
embed_norm 18991301
complex_norm 34944749
checknf 111771652
checknf_i 114801351

Generated by: LCOV version 1.16