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 17710-c8a39c8) Lines: 1526 1626 93.8 %
Date: 2015-03-31 Functions: 111 126 88.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 968 1209 80.1 %

Function Name Sort by function name Hit count Sort by hit count
F4 1008
FpX_FpC_nfpoleval 112
Polred 84
QX_galoisapplymod 112
QX_table_nfpoleval 13776
ZC_galoisapply 4459
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 11298
checkbid 175726
checkbid_i 180787
checkbnf 584813
checkbnf_i 585863
checkbnr 170280
checkbnrgen 0
checknf 5084513
checknf_i 5186087
checknfelt_mod 64320
checkrnf 207501
checkrnf_i 211470
checksqmat 0
chk_gen 10586
chk_gen_init 344
chk_gen_prec 1414
cmp_abs_ZX 3046
complex_norm 2441588
elt_galoisapply 49
embed_T2 1548
embed_norm 1128859
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
filter 742
findmindisc 343
gal_check_pol 161
galois_res 1029
galoisapply 4942
get_Tr 3955
get_bas_den 10705
get_bnf 12852
get_bnfpol 147
get_nf 56707
get_nf_fp_compo 5053
get_nfindex 630
get_nfpol 12268
get_pol 24484
get_polchar 10586
get_red_G 2975
get_roots 7747
get_roots_for_M 8751
get_sign 3955
idealfrobenius 63
idealinertiagroup 21
idealquasifrob 133
idealramgroupindex 14
idealramgroups 98
idealramgroupstame 84
make_G 8751
make_M 8751
make_M_G 8751
make_Tr 1988
nf_get_allroots 0
nf_get_prec 63852
nf_input_type 5040
nf_set_multable 3955
nfbasic_add_disc 3948
nfbasic_init 5040
nfbasic_to_nf 3955
nfcertify 7
nffp_init 8028
nfgaloismatrix 1806
nfinit 2275
nfinit0 1470
nfinitall 3969
nfinitred 0
nfinitred2 0
nfisincl 35
nfisisom 14
nfiso0 49
nfnewprec 63
nfnewprec_shallow 723
nfpoleval 11417
nfpolred 63
nftyp 36624
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 57085
real_norm 6636
remake_GM 723
remove_duplicates 336
rnfpolred_i 63
rnfpolredabs 28
rnfpolredbest 35
roots_to_ZX 1345
set_LLL_basis 4963
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