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.10.0 lcov report (development 20777-d2a9243) Lines: 1428 1760 81.1 %
Date: 2017-06-25 05:59:24 Functions: 84 96 87.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
COPY 0
ECM_alloc 71
ECM_init 71
ECM_loop 121
FpE_add_i 8349008
INIT 32782
SHALLOWCOPY 0
STORE 154427
STOREi 16840
STOREu 137566
ZV_aff 27974
Z_ECM 0
Z_factor 6080106
Z_factor_limit 9237
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 329174
Z_pollardbrent 0
absZ_factor 3889741
absZ_factor_limit 25201
aux_end 32094
check_res 1840457
core 3178
coreu 4514
coreu_fact 238902
ecm_elladd 241333
ecm_elladd0 247445
ecm_elladd2 7334
elldouble 42166
ellfacteur 393
ellmult 27036
factorint 14
factoru 3800628
factoru_sign 13772814
get_rule 213753
ifac_GC 0
ifac_check 0
ifac_checkprime 7211
ifac_core 19
ifac_crack 3663
ifac_decomp 1222
ifac_defrag 210
ifac_delete 28902
ifac_divide 6759
ifac_factor_dbg 0
ifac_factoru 878
ifac_find 10362
ifac_insert_multiplet 473
ifac_ispowerful 7
ifac_isprime 10273
ifac_main 10284
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6634
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 3502
ifac_whoiswho 3761
ifactor 6089386
ifactor_sign 10004327
is_357_power 1382939
is_kth_power 31493
is_pth_power 28506
ispowerful 1708
matsmalltrunc_append 78871199
matsmalltrunc_init 27963355
moebius 62022
moebiusu 170194
moebiusu_fact 0
nextprime 2037404
one_iter 29092668
pollardbrent 3380
pollardbrent_i 3380
precprime 49
rho_dbg 0
snextpr 4581948
special_primes 10231
squfof 2123
squfof_ambig 2297
tridiv_bound 23249
u_forprime_next_fast 455522558
uis_357_power 983305
uis_357_powermod 1016804
uis_357_powermod_32bit_1 8792
uis_357_powermod_32bit_2 425
unextprime 2542895
update_pow 374
uprecprime 32
utridiv_bound 13507540
vecfactoru 13776
vecfactoru_i 25653

Generated by: LCOV version 1.11