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 17097-9391e68) Lines: 1524 1623 93.9 %
Date: 2014-11-21 Functions: 110 125 88.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 963 1204 80.0 %

Function Name Sort by function name Hit count Sort by hit count
F4 720
FpX_FpC_nfpoleval 45
Polred 60
QX_galoisapplymod 45
QX_table_nfpoleval 8675
ZC_galoisapply 2600
ZM_image_shallow 934
ZX_Q_normalize 6975
ZX_Z_normalize 7115
ZX_canon_neg 7372
ZX_is_better 3161
ZX_primitive_to_monic 7145
ZX_to_monic 0
check_ZKmodule 1495
checkabgrp 8060
checkbid 124196
checkbid_i 127701
checkbnf 412828
checkbnf_i 413578
checkbnr 120341
checkbnrgen 0
checknf 3285327
checknf_i 3345042
checknfelt_mod 36490
checkrnf 5140
checksqmat 0
chk_gen 7367
chk_gen_init 206
chk_gen_prec 925
cmp_abs_ZX 2146
complex_norm 858321
elt_galoisapply 35
embed_T2 981
embed_norm 550304
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
filter 525
findmindisc 205
gal_check_pol 80
galois_res 735
galoisapply 2980
get_Tr 1770
get_bas_den 5553
get_bnf 9050
get_bnfpol 105
get_nf 40240
get_nf_fp_compo 2509
get_nfindex 110
get_nfpol 6755
get_pol 16490
get_polchar 7367
get_red_G 1530
get_roots 3876
get_roots_for_M 4567
get_sign 1770
idealfrobenius 10
idealinertiagroup 15
idealquasifrob 60
idealramgroupindex 10
idealramgroups 70
idealramgroupstame 60
make_G 4567
make_M 4567
make_M_G 4567
make_Tr 915
nf_get_allroots 0
nf_get_prec 14249
nf_input_type 2500
nf_set_multable 1865
nfbasic_add_disc 1765
nfbasic_init 2500
nfbasic_to_nf 1770
nfcertify 5
nffp_init 4039
nfgaloismatrix 1140
nfinit 1075
nfinit0 550
nfinitall 1780
nfinitred 0
nfinitred2 0
nfisincl 25
nfisisom 10
nfiso0 35
nfnewprec 45
nfnewprec_shallow 528
nfpoleval 8155
nfpolred 45
nftyp 25695
polgalois 2165
polgaloisnames 735
polred 10
polred0 50
polred2 0
polred_aux 545
polred_init 725
polredabs 0
polredabs0 210
polredabs2 0
polredabs_aux 200
polredabsall 0
polredbest 430
polredbest_aux 490
polredord 15
pr_galoisapply 5
primes_certify 60
quicktrace 35020
real_norm 4740
remake_GM 528
remove_duplicates 200
rnfpolred_i 45
rnfpolredabs 20
rnfpolredbest 25
roots_to_ZX 961
set_LLL_basis 2445
set_mulid 830
smallpolred 0
smallpolred2 0
store 1725
table_galoisapply 2670
tests_OK 35
transroot 4125
try_polmin 12835
tschirnhaus 2240
vecgaloisapply 5

Generated by: LCOV version 1.9