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-bordeaux1.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.8.0 lcov report (development 16962-5a32637) Lines: 1381 1685 82.0 %
Date: 2014-10-29 Functions: 75 84 89.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1043 1519 68.7 %

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 331520
INIT 35044
SHALLOWCOPY 0
STORE 149174
STOREi 16479
STOREu 132674
ZV_aff 6104
Z_factor 1178218
Z_factor_limit 4865
Z_factor_until 679
Z_issmooth 0
Z_issmooth_fact 269850
absi_factor 470702
absi_factor_limit 8785
alloc_scratch 35
aux_end 30533
check_res 1837160
core 280
coreu 152
ecm_elladd 36925
ecm_elladd0 37457
ecm_elladd2 980
elldouble 7714
ellfacteur 574
ellmult 5166
factorint 14
factoru 424159
factoru_sign 2056882
get_rule 30513
ifac_GC 0
ifac_check 0
ifac_checkprime 7971
ifac_core 19
ifac_crack 3987
ifac_decomp 1110
ifac_defrag 210
ifac_delete 30871
ifac_divide 7096
ifac_factor_dbg 0
ifac_factoru 842
ifac_find 10544
ifac_insert_multiplet 679
ifac_ispowerful 7
ifac_isprime 11544
ifac_main 10466
ifac_moebius 189
ifac_moebiusu 1068
ifac_next 7066
ifac_print 0
ifac_read 60
ifac_realloc 0
ifac_resort 105
ifac_skip 18
ifac_sort_one 105
ifac_start 1822
ifac_start_hint 3774
ifac_whoiswho 4085
ifactor 1183776
ifactor_sign 1663263
is_357_power 1382286
is_kth_power 30310
is_pth_power 28393
ispowerful 294
moebius 1010
moebiusu 11635
nextprime 2032357
pollardbrent 3746
precprime 35
rho_dbg 0
snextpr 235956
special_primes 9841
squfof 2262
squfof_ambig 2262
tridiv_bound 22812
u_forprime_next_fast 340131275
uis_357_power 982584
uis_357_powermod 1016175
uis_357_powermod_32bit_1 8799
uis_357_powermod_32bit_2 423
unextprime 4536151
update_pow 325
uprecprime 25
utridiv_bound 1859386

Generated by: LCOV version 1.9