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 16358-a11f489) Lines: 1548 1621 95.5 %
Date: 2014-04-11 Functions: 120 125 96.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 969 1200 80.8 %

Function Name Sort by function name Hit count Sort by hit count
F4 720
FpX_FpC_nfpoleval 45
Polred 95
QX_galoisapplymod 45
QX_table_nfpoleval 8517
ZC_galoisapply 2537
ZM_image_shallow 961
ZX_Q_normalize 6875
ZX_Z_normalize 7015
ZX_canon_neg 7992
ZX_is_better 3631
ZX_primitive_to_monic 6995
ZX_to_monic 0
check_ZKmodule 1520
checkabgrp 7905
checkbid 160905
checkbid_i 164338
checkbnf 523315
checkbnf_i 524080
checkbnr 157087
checkbnrgen 0
checknf 3396284
checknf_i 3454551
checknfelt_mod 34776
checkrnf 5140
checksqmat 0
chk_gen 7417
chk_gen_init 216
chk_gen_prec 975
cmp_abs_ZX 2331
complex_norm 3968808
elt_galoisapply 35
embed_T2 1041
embed_norm 1338024
embednorm_T2 5463
factoredpolred 5
factoredpolred2 5
filter 555
findmindisc 215
gal_check_pol 80
galois_res 730
galoisapply 2890
get_Tr 1565
get_bas_den 5416
get_bnf 8895
get_bnfpol 110
get_nf 4520
get_nf_fp_compo 2344
get_nfindex 115
get_nfpol 5165
get_pol 17185
get_polchar 7417
get_red_G 1355
get_roots 3836
get_roots_for_M 4435
get_sign 1565
idealfrobenius 10
idealinertiagroup 15
idealquasifrob 60
idealramgroupindex 10
idealramgroups 70
idealramgroupstame 60
make_G 4435
make_M 4435
make_M_G 4435
make_Tr 910
nf_get_allroots 0
nf_get_prec 15741
nf_input_type 2320
nf_set_multable 1660
nfbasic_add_disc 1555
nfbasic_init 2320
nfbasic_to_nf 1565
nfcertify 5
nffp_init 3699
nfgaloismatrix 1070
nfinit 1010
nfinit0 450
nfinitall 1570
nfinitred 5
nfinitred2 5
nfisincl 30
nfisisom 20
nfiso0 50
nfnewprec 45
nfnewprec_shallow 736
nfpoleval 8051
nfpolred 55
nftyp 45
polgalois 2150
polgaloisnames 730
polred 20
polred0 50
polred2 5
polred_aux 575
polred_init 765
polredabs 5
polredabs0 220
polredabs2 5
polredabs_aux 210
polredabsall 0
polredbest 415
polredbest_aux 485
polredord 20
pr_galoisapply 5
primes_certify 70
quicktrace 30485
real_norm 4790
remake_GM 736
remove_duplicates 210
rnfpolred_i 45
rnfpolredabs 20
rnfpolredbest 25
roots_to_ZX 964
set_LLL_basis 2265
set_mulid 860
smallpolred 5
smallpolred2 5
store 1735
table_galoisapply 2670
tests_OK 50
transroot 4141
try_polmin 13510
tschirnhaus 2254
vecgaloisapply 5

Generated by: LCOV version 1.9