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 - ifactor1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 19043-64ae2d8) Lines: 1386 1687 82.2 %
Date: 2016-06-25 Functions: 75 84 89.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1054 1521 69.3 %

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 3004016
INIT 32435
SHALLOWCOPY 0
STORE 153054
STOREi 16694
STOREu 136339
ZV_aff 13394
Z_factor 2283722
Z_factor_limit 6849
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 329525
absi_factor 1377887
absi_factor_limit 11081
alloc_scratch 47
aux_end 31435
check_res 1839600
core 3108
coreu 2486
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 355
ellmult 12456
factorint 14
factoru 1507767
factoru_sign 5155887
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7174
ifac_core 19
ifac_crack 3627
ifac_decomp 1183
ifac_defrag 210
ifac_delete 28579
ifac_divide 6706
ifac_factor_dbg 0
ifac_factoru 872
ifac_find 10264
ifac_insert_multiplet 454
ifac_ispowerful 7
ifac_isprime 10202
ifac_main 10186
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6604
ifac_print 0
ifac_read 60
ifac_realloc 0
ifac_resort 105
ifac_skip 18
ifac_sort_one 105
ifac_start 1402
ifac_start_hint 3457
ifac_whoiswho 3725
ifactor 2290615
ifactor_sign 3679583
is_357_power 1382468
is_kth_power 30628
is_pth_power 28144
ispowerful 1708
moebius 2425
moebiusu 19036
nextprime 2034198
pollardbrent 3358
precprime 35
rho_dbg 0
snextpr 1684620
special_primes 10004
squfof 2078
squfof_ambig 2311
tridiv_bound 23186
u_forprime_next_fast 400035693
uis_357_power 983038
uis_357_powermod 1016359
uis_357_powermod_32bit_1 8754
uis_357_powermod_32bit_2 425
unextprime 9503919
update_pow 353
uprecprime 25
utridiv_bound 4891055

Generated by: LCOV version 1.9