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 20091-343fe20) Lines: 1389 1702 81.6 %
Date: 2017-01-20 05:50:06 Functions: 76 85 89.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 3004016
INIT 32988
SHALLOWCOPY 0
STORE 152400
STOREi 16660
STOREu 135719
ZV_aff 13394
Z_factor 5549435
Z_factor_limit 7507
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 330522
absZ_factor 3858521
absZ_factor_limit 11194
alloc_scratch 47
aux_end 31325
check_res 1839853
core 3108
coreu 4332
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 355
ellmult 12456
factorint 14
factoru 3621573
factoru_sign 13016919
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7230
ifac_core 19
ifac_crack 3690
ifac_decomp 1253
ifac_defrag 210
ifac_delete 29062
ifac_divide 6769
ifac_factor_dbg 0
ifac_factoru 872
ifac_find 10397
ifac_insert_multiplet 454
ifac_ispowerful 7
ifac_isprime 10345
ifac_main 10319
ifac_moebius 196
ifac_moebiusu 1068
ifac_next 6604
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 3527
ifac_whoiswho 3788
ifactor 5556985
ifactor_sign 9426700
is_357_power 1382540
is_kth_power 30320
is_pth_power 28200
ispowerful 1708
moebius 21181
moebiusu 55742
nextprime 2037579
one_iter 13893203
pollardbrent 3351
precprime 35
rho_dbg 0
snextpr 1684620
special_primes 10084
squfof 2071
squfof_ambig 2283
tridiv_bound 23175
u_forprime_next_fast 446402675
uis_357_power 983096
uis_357_powermod 1016429
uis_357_powermod_32bit_1 8762
uis_357_powermod_32bit_2 429
unextprime 2551219
update_pow 458
uprecprime 25
utridiv_bound 12742907

Generated by: LCOV version 1.11