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-bordeaux1.fr machine (x86_64 architecture), and agregate them in the final report:

The target is 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.8.0 lcov report (development 17400-bace02f) Lines: 1526 1626 93.8 %
Date: 2015-01-25 Functions: 111 126 88.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 966 1209 79.9 %

Function Name Sort by function name Hit count Sort by hit count
F4 1008
FpX_FpC_nfpoleval 70
Polred 84
QX_galoisapplymod 70
QX_table_nfpoleval 13734
ZC_galoisapply 4375
ZM_image_shallow 1427
ZX_Q_normalize 10696
ZX_Z_normalize 10948
ZX_canon_neg 10586
ZX_is_better 4481
ZX_primitive_to_monic 10955
ZX_to_monic 0
check_ZKmodule 2905
checkabgrp 11284
checkbid 175747
checkbid_i 180808
checkbnf 584855
checkbnf_i 585905
checkbnr 170301
checkbnrgen 0
checknf 5017042
checknf_i 5118616
checknfelt_mod 62531
checkrnf 106099
checkrnf_i 109592
checksqmat 0
chk_gen 10586
chk_gen_init 344
chk_gen_prec 1414
cmp_abs_ZX 3046
complex_norm 2441391
elt_galoisapply 49
embed_T2 1548
embed_norm 1128811
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
filter 742
findmindisc 343
gal_check_pol 119
galois_res 1029
galoisapply 4900
get_Tr 3479
get_bas_den 9753
get_bnf 12796
get_bnfpol 147
get_nf 56623
get_nf_fp_compo 4577
get_nfindex 154
get_nfpol 11673
get_pol 24484
get_polchar 10586
get_red_G 2835
get_roots 7132
get_roots_for_M 8135
get_sign 3479
idealfrobenius 21
idealinertiagroup 21
idealquasifrob 91
idealramgroupindex 14
idealramgroups 98
idealramgroupstame 84
make_G 8135
make_M 8135
make_M_G 8135
make_Tr 1652
nf_get_allroots 0
nf_get_prec 23616
nf_input_type 4564
nf_set_multable 3479
nfbasic_add_disc 3472
nfbasic_init 4564
nfbasic_to_nf 3479
nfcertify 7
nffp_init 7412
nfgaloismatrix 1806
nfinit 2128
nfinit0 1141
nfinitall 3493
nfinitred 0
nfinitred2 0
nfisincl 35
nfisisom 14
nfiso0 49
nfnewprec 63
nfnewprec_shallow 723
nfpoleval 11417
nfpolred 63
nftyp 36337
polgalois 3031
polgaloisnames 1029
polred 14
polred0 70
polred2 0
polred_aux 770
polred_init 1078
polredabs 0
polredabs0 350
polredabs2 0
polredabs_aux 336
polredabsall 0
polredbest 609
polredbest_aux 693
polredord 21
pr_galoisapply 7
primes_certify 84
quicktrace 56560
real_norm 6636
remake_GM 723
remove_duplicates 336
rnfpolred_i 63
rnfpolredabs 28
rnfpolredbest 35
roots_to_ZX 1345
set_LLL_basis 4487
set_mulid 1295
smallpolred 0
smallpolred2 0
store 2471
table_galoisapply 3738
tests_OK 49
transroot 5775
try_polmin 19838
tschirnhaus 3136
vecgaloisapply 7

Generated by: LCOV version 1.9