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 21505-505a0e1) Lines: 1427 1758 81.2 %
Date: 2017-12-17 06:20:46 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 47
ECM_init 47
ECM_loop 73
FpE_add_i 3004016
INIT 32533
SHALLOWCOPY 0
STORE 153649
STOREi 16809
STOREu 136819
ZV_aff 13394
Z_ECM 0
Z_factor 6646454
Z_factor_limit 9516
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 195948
Z_pollardbrent 0
absZ_factor 4521736
absZ_factor_limit 24276
aux_end 31903
check_res 1865490
core 3185
coreu 5310
coreu_fact 5310
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 355
ellmult 12456
factorint 14
factoru 4737016
factoru_sign 15907108
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7090
ifac_core 33
ifac_crack 3599
ifac_decomp 1184
ifac_defrag 210
ifac_delete 28677
ifac_divide 6664
ifac_factor_dbg 0
ifac_factoru 878
ifac_find 10271
ifac_insert_multiplet 447
ifac_ispowerful 7
ifac_isprime 10141
ifac_main 10151
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6640
ifac_print 0
ifac_read 88
ifac_realloc 0
ifac_resort 105
ifac_skip 32
ifac_sort_one 105
ifac_start 1416
ifac_start_hint 3478
ifac_whoiswho 3697
ifactor 6656012
ifactor_sign 11202026
is_357_power 1396893
is_kth_power 259927
is_pth_power 42476
ispowerful 1708
matsmalltrunc_append 137520114
matsmalltrunc_init 49079554
moebius 21880
moebiusu 131065
moebiusu_fact 0
nextprime 2036039
one_iter 14060673
pollardbrent 3323
pollardbrent_i 3323
precprime 49
rho_dbg 0
snextpr 1684620
special_primes 10163
squfof 2092
squfof_ambig 2346
tridiv_bound 23177
u_forprime_next_fast 435482880
uis_357_power 983269
uis_357_powermod 1028759
uis_357_powermod_32bit_1 10806
uis_357_powermod_32bit_2 503
unextprime 3697073
update_pow 367
uprecprime 32
utridiv_bound 15563232
vecfactoru 13776
vecfactoru_i 46037

Generated by: LCOV version 1.11