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 20277-2bd9113) Lines: 1381 1704 81.0 %
Date: 2017-02-21 05:49:51 Functions: 77 87 88.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 3004016
INIT 32456
SHALLOWCOPY 0
STORE 152782
STOREi 16755
STOREu 136006
ZV_aff 13394
Z_factor 5565157
Z_factor_limit 7507
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 330767
absZ_factor 3864751
absZ_factor_limit 16178
alloc_scratch 47
aux_end 31365
check_res 1839807
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 3635043
factoru_sign 13057286
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7062
ifac_core 19
ifac_crack 3613
ifac_decomp 1185
ifac_defrag 210
ifac_delete 28607
ifac_divide 6650
ifac_factor_dbg 0
ifac_factoru 884
ifac_find 10222
ifac_insert_multiplet 447
ifac_ispowerful 7
ifac_isprime 10087
ifac_main 10144
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6640
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 3471
ifac_whoiswho 3711
ifactor 5572707
ifactor_sign 9453637
is_357_power 1382571
is_kth_power 30943
is_pth_power 28273
ispowerful 1708
moebius 21342
moebiusu 55930
moebiusu_fact 0
nextprime 2037362
one_iter 13980267
pollardbrent 3302
precprime 35
rho_dbg 0
snextpr 1684620
special_primes 10109
squfof 2064
squfof_ambig 2276
tridiv_bound 22725
u_forprime_next_fast 449757805
uis_357_power 983109
uis_357_powermod 1016454
uis_357_powermod_32bit_1 8768
uis_357_powermod_32bit_2 426
unextprime 2499764
update_pow 381
uprecprime 25
utridiv_bound 12779518

Generated by: LCOV version 1.11