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-bordeaux.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 19614-52e089f) Lines: 1344 1447 92.9 %
Date: 2016-09-28 05:54:17 Functions: 107 122 87.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
FpX_FpC_nfpoleval 1456
Polred 84
QX_galoisapplymod 1456
QX_table_nfpoleval 24361
ZC_galoisapply 13387
ZM_image_shallow 1427
ZX_Q_normalize 12432
ZX_Z_normalize 12684
ZX_canon_neg 10733
ZX_is_better 4621
ZX_primitive_to_monic 12691
ZX_to_monic 0
check_ZKmodule 3276
checkabgrp 11529
checkbid 200454
checkbid_i 206754
checkbnf 685442
checkbnf_i 687619
checkbnr 198403
checkbnrgen 0
checknf 16390506
checknf_i 17297234
checknfelt_mod 73430
checkrnf 208257
checkrnf_i 211197
checksqmat 0
chk_gen 10593
chk_gen_init 351
chk_gen_prec 1456
cmp_abs_ZX 3172
complex_norm 2848091
elt_galoisapply 49
embed_T2 1583
embed_norm 1267172
embednorm_T2 0
factoredpolred 0
factoredpolred2 0
filter 770
findmindisc 350
gal_check_pol 182
galoisapply 5428
get_Tr 5285
get_bas_den 13497
get_bnf 13188
get_bnfpol 112
get_nf 111272
get_nfindex 539
get_nfpol 15921
get_pol 24778
get_polchar 10593
get_red_G 3563
get_roots 9510
idealfrobenius 63
idealfrobenius_aut 3024
idealinertiagroup 42
idealquasifrob 3017
idealramfrobenius 14
idealramgroupindex 14
idealramgroups 119
idealramgroupstame 105
make_G 10794
make_M 10794
make_M_G 10794
make_Tr 2744
nf_get_allroots 0
nf_get_prec 72476
nf_input_type 5180
nf_multable 5285
nfcertify 7
nffp_init 9961
nfgaloismatrix 2243
nfgaloispermtobasis 14
nfinit 1204
nfinit0 1736
nfinit_basic 5180
nfinit_basic_partial 1029
nfinit_complete 5278
nfinitall 2940
nfinitred 0
nfinitred2 0
nfisincl 35
nfisisom 14
nfiso0 49
nfmaxord_complete 10563
nfmaxord_to_nf 5285
nfnewprec 63
nfnewprec_shallow 813
nfpoleval 11417
nfpolred 84
nftyp 41440
polred 14
polred0 70
polred2 0
polred_aux 798
polred_init 1113
polredabs 0
polredabs0 357
polredabs2 0
polredabs_aux 343
polredabsall 0
polredbest 616
polredbest_aux 721
polredord 21
pr_galoisapply 7
primes_certify 91
quicktrace 51863
real_norm 6671
remove_duplicates 343
rnfpolred_i 63
rnfpolredabs 28
rnfpolredbest 35
set_LLL_basis 6307
set_mulid 1302
smallpolred 0
smallpolred2 0
store 2478
table_galoisapply 3738
tests_OK 49
try_polmin 20272
tschirnhaus 3157
typv6 103047
vecgaloisapply 7

Generated by: LCOV version 1.11