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 - buch3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19044-129ab8a) Lines: 1397 1484 94.1 %
Date: 2016-06-26 Functions: 95 104 91.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 760 932 81.5 %

Function Name Sort by function name Hit count Sort by hit count
ABC_to_bnr 259
Buchray 6125
Discrayrel 175
Lbnrclassno 1267
bigcgetvec 77
bnfcertify 28
bnfcertify0 49
bnr_log_gen_arch 6216
bnr_log_gen_pr 9835
bnrautmatrix 462
bnrchar 371
bnrchar_i 371
bnrchar_primitive 630
bnrclassno 77
bnrclassno0 70
bnrclassnointern 28
bnrclassnointernarch 280
bnrclassnolist 7
bnrconductor 0
bnrconductor0 56
bnrconductor_i 4354
bnrconductorofchar 2079
bnrdisc 175
bnrdisc0 175
bnrdisclist0 42
bnrgaloisapply 560
bnrgaloismatrix 238
bnrinit0 623
bnrisconductor 3297
bnrisconductor0 28
bnrisgalois 448
bnrisprincipal 184364
bnrsurjection 1414
bound_unit_index 49
buchnarrow 14
char_denormalize 3976
check_bnrgal 448
check_prime 1540
check_subgroup 7847
chk_listBU 28
compute_M0 21
compute_fact 5173
compute_raygen 5201
conductor_elts 483
contains 14714
decodemodule 21
dft_bound 0
discrayabs 0
discrayabscond 0
discrayabslist 21
discrayabslistarch 21
discrayabslistlong 0
discrayrel 0
discrayrelcond 0
factordivexact 420
factormul 1071
factorpow 840
factorsplice 1015
fasmall_append 308
fast_val 6622
get_NR1D 420
get_classno 938
get_dataunit 5467
get_discdata 497
get_discray 497
get_nz 175
get_pi 2583
get_pinvpi 1309
hermiteconstant 49
ideallog_to_bnr 16051
idealmoddivisor 4214
idealmoddivisor_aux 5978
imageofchar 357
imageofgroup 301
init_bad 49
is_complex 616
is_unit 70483
is_zero 910
isprimitive 28
isprincipalray 178071
isprincipalraygen 0
lowerboundforregulator 49
make_integral_Z 980
minimforunits 35
minkowski_bound 0
nf_deg1_prime 14
primecertify 1540
regulatorbound 28
rnfconductor 343
rnfisabelian 42
rnfnormgroup 329
rnfnormgroup_i 672
rowselect_p 805
subgroup_conductor_ok 1435
subgroupcond 35
subgrouplist0 77
subgrouplist_cond_sub 448
too_big 6685
vecselect_p 1344
vext0 3388
vext1 3388
zimmertbound 49
zsimp 21
zsimpjoin 308

Generated by: LCOV version 1.9