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 - buch3.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17238-ce76349) Lines: 1336 1416 94.4 %
Date: 2014-12-20 Functions: 91 99 91.9 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 715 888 80.5 %

Function Name Sort by function name Hit count Sort by hit count
ABC_to_bnr 210
Buchray 4970
Discrayrel 140
KerChar 2065
Lbnrclassno 1267
bigcgetvec 77
bnfcertify 21
bnfcertify0 42
bnr_log_gen_arch 5761
bnr_log_gen_pr 8610
bnrautmatrix 462
bnrclassno 77
bnrclassno0 70
bnrclassnointern 28
bnrclassnointernarch 280
bnrclassnolist 7
bnrconductor 3276
bnrconductor0 42
bnrconductorofchar 2065
bnrdisc 140
bnrdisc0 140
bnrdisclist0 42
bnrgaloisapply 560
bnrgaloismatrix 238
bnrinit0 553
bnrisconductor 3451
bnrisconductor0 28
bnrisgalois 448
bnrisprincipal 159094
bnrsurjection 917
bound_unit_index 42
buchnarrow 14
check_bnrgal 448
check_prime 1512
check_subgroup 6888
chk_listBU 28
compute_M0 21
compute_fact 4424
compute_raygen 4445
conductor_elts 518
contains 12936
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 7756
get_NR1D 420
get_classno 938
get_dataunit 4690
get_discdata 497
get_discray 497
get_nz 175
get_pi 3171
get_pinvpi 1568
hermiteconstant 42
ideallog_to_bnr 14371
idealmoddivisor 4214
idealmoddivisor_aux 6349
imageofgroup 98
init_bad 42
is_complex 616
is_unit 35490
is_zero 910
isprimitive 21
isprincipalray 153725
isprincipalraygen 0
lowerboundforregulator 42
make_integral_Z 1190
minimforunits 28
minkowski_bound 0
nf_deg1_prime 14
primecertify 1512
regulatorbound 21
rnfconductor 7
rnfisabelian 28
rnfnormgroup 301
rnfnormgroup_i 301
rowselect_p 805
subgroup_conductor_ok 1456
subgroupcond 35
subgrouplist0 49
subgrouplist_cond_sub 483
too_big 7000
vecselect_p 1344
vext0 3388
vext1 3388
zimmertbound 42
zsimp 21
zsimpjoin 308

Generated by: LCOV version 1.9