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 18888-55e726a) Lines: 1387 1687 82.2 %
Date: 2016-04-30 Functions: 75 84 89.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1055 1521 69.4 %

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 3004016
INIT 32456
SHALLOWCOPY 0
STORE 152931
STOREi 16666
STOREu 136244
ZV_aff 13394
Z_factor 2280197
Z_factor_limit 6835
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 330318
absi_factor 1377957
absi_factor_limit 10969
alloc_scratch 47
aux_end 31401
check_res 1839655
core 3108
coreu 2486
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 348
ellmult 12456
factorint 14
factoru 1506769
factoru_sign 5151345
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7230
ifac_core 19
ifac_crack 3641
ifac_decomp 1183
ifac_defrag 210
ifac_delete 28600
ifac_divide 6727
ifac_factor_dbg 0
ifac_factoru 872
ifac_find 10285
ifac_insert_multiplet 447
ifac_ispowerful 7
ifac_isprime 10258
ifac_main 10207
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 3739
ifactor 2287076
ifactor_sign 3676003
is_357_power 1382475
is_kth_power 30628
is_pth_power 28130
ispowerful 1708
moebius 2425
moebiusu 19015
nextprime 2034191
pollardbrent 3365
precprime 35
rho_dbg 0
snextpr 1684620
special_primes 9976
squfof 2071
squfof_ambig 2311
tridiv_bound 23205
u_forprime_next_fast 399546216
uis_357_power 983057
uis_357_powermod 1016366
uis_357_powermod_32bit_1 8754
uis_357_powermod_32bit_2 426
unextprime 3101205
update_pow 388
uprecprime 25
utridiv_bound 4886585

Generated by: LCOV version 1.9