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 20924-e159ed0) Lines: 1428 1760 81.1 %
Date: 2017-08-21 06:23:16 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 32894
SHALLOWCOPY 0
STORE 153143
STOREi 16776
STOREu 136346
ZV_aff 27974
Z_ECM 0
Z_factor 6698695
Z_factor_limit 9335
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 193242
Z_pollardbrent 0
absZ_factor 4377326
absZ_factor_limit 24262
aux_end 31874
check_res 1865202
core 3150
coreu 5184
coreu_fact 239439
ecm_elladd 241333
ecm_elladd0 247445
ecm_elladd2 7334
elldouble 42166
ellfacteur 393
ellmult 27036
factorint 14
factoru 4434032
factoru_sign 15511776
get_rule 213753
ifac_GC 0
ifac_check 0
ifac_checkprime 7211
ifac_core 33
ifac_crack 3663
ifac_decomp 1222
ifac_defrag 210
ifac_delete 29000
ifac_divide 6759
ifac_factor_dbg 0
ifac_factoru 878
ifac_find 10404
ifac_insert_multiplet 473
ifac_ispowerful 7
ifac_isprime 10287
ifac_main 10284
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6634
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 3516
ifac_whoiswho 3761
ifactor 6708074
ifactor_sign 11109661
is_357_power 1396890
is_kth_power 259217
is_pth_power 42520
ispowerful 1708
matsmalltrunc_append 215974679
matsmalltrunc_init 76406903
moebius 61541
moebiusu 170509
moebiusu_fact 0
nextprime 2037404
one_iter 29102289
pollardbrent 3380
pollardbrent_i 3380
precprime 49
rho_dbg 0
snextpr 4581948
special_primes 10168
squfof 2123
squfof_ambig 2297
tridiv_bound 23315
u_forprime_next_fast 432652865
uis_357_power 983208
uis_357_powermod 1028749
uis_357_powermod_32bit_1 10798
uis_357_powermod_32bit_2 505
unextprime 2552658
update_pow 374
uprecprime 32
utridiv_bound 15206104
vecfactoru 13776
vecfactoru_i 73631

Generated by: LCOV version 1.11