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 16393-29b9383) Lines: 1548 1621 95.5 %
Date: 2014-04-24 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 8527
ZC_galoisapply 2542
ZM_image_shallow 961
ZX_Q_normalize 6890
ZX_Z_normalize 7035
ZX_canon_neg 8002
ZX_is_better 3631
ZX_primitive_to_monic 7010
ZX_to_monic 0
check_ZKmodule 1535
checkabgrp 7905
checkbid 160965
checkbid_i 164413
checkbnf 523485
checkbnf_i 524250
checkbnr 157157
checkbnrgen 0
checknf 3397896
checknf_i 3456198
checknfelt_mod 34786
checkrnf 5140
checksqmat 0
chk_gen 7427
chk_gen_init 221
chk_gen_prec 985
cmp_abs_ZX 2331
complex_norm 3968492
elt_galoisapply 35
embed_T2 1051
embed_norm 1337971
embednorm_T2 5448
factoredpolred 5
factoredpolred2 5
filter 555
findmindisc 220
gal_check_pol 80
galois_res 730
galoisapply 2895
get_Tr 1575
get_bas_den 5446
get_bnf 8895
get_bnfpol 110
get_nf 4520
get_nf_fp_compo 2359
get_nfindex 115
get_nfpol 5180
get_pol 17205
get_polchar 7427
get_red_G 1365
get_roots 3856
get_roots_for_M 4460
get_sign 1575
idealfrobenius 10
idealinertiagroup 15
idealquasifrob 60
idealramgroupindex 10
idealramgroups 70
idealramgroupstame 60
make_G 4460
make_M 4460
make_M_G 4460
make_Tr 915
nf_get_allroots 0
nf_get_prec 15793
nf_input_type 2335
nf_set_multable 1670
nfbasic_add_disc 1565
nfbasic_init 2335
nfbasic_to_nf 1575
nfcertify 5
nffp_init 3724
nfgaloismatrix 1075
nfinit 1020
nfinit0 450
nfinitall 1580
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 770
polredabs 5
polredabs0 225
polredabs2 5
polredabs_aux 215
polredabsall 0
polredbest 415
polredbest_aux 485
polredord 20
pr_galoisapply 5
primes_certify 70
quicktrace 30490
real_norm 4790
remake_GM 736
remove_duplicates 215
rnfpolred_i 45
rnfpolredabs 20
rnfpolredbest 25
roots_to_ZX 964
set_LLL_basis 2280
set_mulid 865
smallpolred 5
smallpolred2 5
store 1740
table_galoisapply 2670
tests_OK 50
transroot 4141
try_polmin 13510
tschirnhaus 2254
vecgaloisapply 5

Generated by: LCOV version 1.9