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 21353-12523aa) Lines: 1428 1760 81.1 %
Date: 2017-11-24 06:20:58 Functions: 84 96 87.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
COPY 0
SHALLOWCOPY 0
Z_ECM 0
Z_issmooth 0
Z_pollardbrent 0
ifac_GC 0
ifac_check 0
ifac_factor_dbg 0
ifac_print 0
ifac_realloc 0
moebiusu_fact 0
rho_dbg 0
ifac_ispowerful 7
factorint 14
Z_factor_until 28
ifac_skip 32
uprecprime 32
ifac_core 33
precprime 49
ECM_alloc 71
ECM_init 71
ifac_read 88
ifac_resort 105
ifac_sort_one 105
ECM_loop 121
ifac_moebius 196
ifac_defrag 210
update_pow 367
ellfacteur 393
ifac_insert_multiplet 473
uis_357_powermod_32bit_2 503
ifac_factoru 878
ifac_moebiusu 1068
ifac_decomp 1222
ifac_start 1416
ispowerful 1708
squfof 2130
squfof_ambig 2304
core 3185
pollardbrent 3387
pollardbrent_i 3387
ifac_start_hint 3516
ifac_crack 3663
ifac_whoiswho 3761
coreu 5219
coreu_fact 5219
ifac_next 6640
ifac_divide 6766
ifac_checkprime 7218
ecm_elladd2 7334
Z_factor_limit 9363
special_primes 10223
ifac_main 10291
ifac_isprime 10293
ifac_find 10411
uis_357_powermod_32bit_1 10810
vecfactoru 13776
STOREi 16831
tridiv_bound 23202
absZ_factor_limit 24255
ellmult 27036
ZV_aff 27974
ifac_delete 29007
aux_end 31965
INIT 32901
elldouble 42166
is_pth_power 42604
vecfactoru_i 45666
moebius 62128
STOREu 136821
STORE 153673
moebiusu 171402
Z_issmooth_fact 193253
get_rule 213753
ecm_elladd 241333
ecm_elladd0 247445
is_kth_power 260435
uis_357_power 983269
uis_357_powermod 1028883
is_357_power 1397021
check_res 1865712
nextprime 2036032
unextprime 3693939
absZ_factor 4377340
factoru 4553092
snextpr 4581948
Z_factor 6443173
ifactor 6452578
FpE_add_i 8349008
ifactor_sign 10854172
utridiv_bound 15072406
factoru_sign 15375282
one_iter 29084954
matsmalltrunc_init 48379113
matsmalltrunc_append 135654481
u_forprime_next_fast 433315263

Generated by: LCOV version 1.11