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 - ifactor1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 18586-b372913) Lines: 1387 1687 82.2 %
Date: 2016-02-08 Functions: 75 84 89.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1056 1521 69.4 %

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 3004016
INIT 32386
SHALLOWCOPY 0
STORE 153417
STOREi 16696
STOREu 136700
ZV_aff 13394
Z_factor 2265876
Z_factor_limit 6835
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 330318
absi_factor 1377404
absi_factor_limit 12327
alloc_scratch 47
aux_end 31452
check_res 1838150
core 3108
coreu 2486
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 348
ellmult 12456
factorint 14
factoru 1388628
factoru_sign 5019634
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7202
ifac_core 19
ifac_crack 3627
ifac_decomp 1176
ifac_defrag 210
ifac_delete 28537
ifac_divide 6706
ifac_factor_dbg 0
ifac_factoru 872
ifac_find 10257
ifac_insert_multiplet 447
ifac_ispowerful 7
ifac_isprime 10230
ifac_main 10179
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 3450
ifac_whoiswho 3725
ifactor 2272755
ifactor_sign 3662485
is_357_power 1382273
is_kth_power 30614
is_pth_power 28124
ispowerful 1708
moebius 2425
moebiusu 18560
nextprime 2032455
pollardbrent 3351
precprime 35
rho_dbg 0
snextpr 1684620
special_primes 9998
squfof 2064
squfof_ambig 2304
tridiv_bound 23151
u_forprime_next_fast 400328873
uis_357_power 982876
uis_357_powermod 1016173
uis_357_powermod_32bit_1 8751
uis_357_powermod_32bit_2 424
unextprime 3100601
update_pow 388
uprecprime 25
utridiv_bound 4756803

Generated by: LCOV version 1.9