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 20422-b487f4d) Lines: 1396 1721 81.1 %
Date: 2017-03-22 05:51:54 Functions: 80 92 87.0 %
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 32127
SHALLOWCOPY 0
STORE 152951
STOREi 16769
STOREu 136161
ZV_aff 13394
Z_ECM 0
Z_factor 5564942
Z_factor_limit 8095
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 329496
Z_pollardbrent 0
absZ_factor 3860257
absZ_factor_limit 16360
aux_end 31377
check_res 1840095
core 3108
coreu 4339
coreu_fact 4339
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 355
ellmult 12456
factorint 14
factoru 3635174
factoru_sign 13053466
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7027
ifac_core 19
ifac_crack 3571
ifac_decomp 1155
ifac_defrag 210
ifac_delete 28320
ifac_divide 6615
ifac_factor_dbg 0
ifac_factoru 872
ifac_find 10145
ifac_insert_multiplet 447
ifac_ispowerful 7
ifac_isprime 10022
ifac_main 10067
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6616
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 3429
ifac_whoiswho 3669
ifactor 5573079
ifactor_sign 9449696
is_357_power 1382748
is_kth_power 30957
is_pth_power 28315
ispowerful 1708
moebius 21878
moebiusu 56462
moebiusu_fact 0
nextprime 2037404
one_iter 14006357
pollardbrent 3309
pollardbrent_i 3309
precprime 49
rho_dbg 0
snextpr 1684620
special_primes 10093
squfof 2071
squfof_ambig 2283
tridiv_bound 22716
u_forprime_next_fast 449725408
uis_357_power 983226
uis_357_powermod 1016619
uis_357_powermod_32bit_1 8786
uis_357_powermod_32bit_2 425
unextprime 2527765
update_pow 332
uprecprime 32
utridiv_bound 12775261

Generated by: LCOV version 1.11