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 18579-f9e35ad) Lines: 1541 1651 93.3 %
Date: 2016-02-06 Functions: 115 130 88.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 984 1219 80.7 %

Function Name Sort by function name Hit count Sort by hit count
F4 1092
FpX_FpC_nfpoleval 1456
Polred 84
QX_galoisapplymod 1456
QX_table_nfpoleval 19502
ZC_galoisapply 10059
ZM_image_shallow 1427
ZX_Q_normalize 12285
ZX_Z_normalize 12537
ZX_canon_neg 10705
ZX_is_better 4600
ZX_primitive_to_monic 12544
ZX_to_monic 0
check_ZKmodule 3038
checkabgrp 11389
checkbid 198343
checkbid_i 204321
checkbnf 678757
checkbnf_i 680773
checkbnr 195368
checkbnrgen 0
checknf 5570609
checknf_i 5786318
checknfelt_mod 82726
checkrnf 208194
checkrnf_i 213703
checksqmat 0
chk_gen 10586
chk_gen_init 344
chk_gen_prec 1435
cmp_abs_ZX 3151
complex_norm 1867783
elt_galoisapply 49
embed_T2 1548
embed_norm 1012493
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
filter 763
findmindisc 343
gal_check_pol 182
galois_res 1050
galoisapply 5026
get_Tr 5495
get_bas_den 13849
get_bnf 13027
get_bnfpol 112
get_nf 62083
get_nf_fp_compo 6614
get_nfindex 637
get_nfpol 15257
get_pol 24715
get_polchar 10586
get_red_G 3794
get_roots 9560
get_roots_for_M 11160
get_sign 5495
idealfrobenius 63
idealfrobenius_aut 3024
idealinertiagroup 42
idealquasifrob 3017
idealramfrobenius 14
idealramgroupindex 14
idealramgroups 119
idealramgroupstame 105
make_G 11160
make_M 11160
make_M_G 11160
make_Tr 2723
nf_get_allroots 0
nf_get_prec 66391
nf_input_type 6587
nf_set_multable 5495
nfbasic_add_disc 5488
nfbasic_init 6587
nfbasic_to_nf 5495
nfcertify 7
nffp_init 10408
nfgaloismatrix 1876
nfgaloispermtobasis 14
nfinit 3087
nfinit0 1680
nfinitall 5509
nfinitred 0
nfinitred2 0
nfisincl 35
nfisisom 14
nfiso0 49
nfnewprec 63
nfnewprec_shallow 752
nfpoleval 11417
nfpolred 70
nftyp 38129
polgalois 3052
polgaloisnames 1050
polred 14
polred0 70
polred2 0
polred_aux 791
polred_init 1099
polredabs 0
polredabs0 350
polredabs2 0
polredabs_aux 336
polredabsall 0
polredbest 616
polredbest_aux 714
polredord 21
pr_galoisapply 7
primes_certify 84
quicktrace 67039
real_norm 6636
remake_GM 752
remove_duplicates 336
rnfpolred_i 63
rnfpolredabs 28
rnfpolredbest 35
roots_to_ZX 1386
set_LLL_basis 6517
set_mulid 1295
smallpolred 0
smallpolred2 0
store 2471
table_galoisapply 3738
tests_OK 49
transroot 5992
try_polmin 20251
tschirnhaus 3164
typv6 51296
vecgaloisapply 7

Generated by: LCOV version 1.9