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 16827-3d78da8) Lines: 1381 1685 82.0 %
Date: 2014-09-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 35443
SHALLOWCOPY 0
STORE 149453
STOREi 16502
STOREu 132930
ZV_aff 6104
Z_factor 1173261
Z_factor_limit 4893
Z_factor_until 679
Z_issmooth 0
Z_issmooth_fact 270599
absi_factor 471004
absi_factor_limit 8988
alloc_scratch 35
aux_end 30577
check_res 1837425
core 308
coreu 176
ecm_elladd 36925
ecm_elladd0 37457
ecm_elladd2 980
elldouble 7714
ellfacteur 574
ellmult 5166
factorint 14
factoru 422126
factoru_sign 2050381
get_rule 30513
ifac_GC 0
ifac_check 0
ifac_checkprime 8023
ifac_core 23
ifac_crack 4032
ifac_decomp 1119
ifac_defrag 210
ifac_delete 31221
ifac_divide 7148
ifac_factor_dbg 0
ifac_factoru 878
ifac_find 10653
ifac_insert_multiplet 679
ifac_ispowerful 7
ifac_isprime 11609
ifac_main 10563
ifac_moebius 189
ifac_moebiusu 1068
ifac_next 7144
ifac_print 0
ifac_read 68
ifac_realloc 0
ifac_resort 105
ifac_skip 22
ifac_sort_one 105
ifac_start 1826
ifac_start_hint 3823
ifac_whoiswho 4130
ifactor 1178847
ifactor_sign 1658839
is_357_power 1382366
is_kth_power 30359
is_pth_power 28459
ispowerful 294
moebius 1018
moebiusu 11655
nextprime 2026619
pollardbrent 3753
precprime 35
rho_dbg 0
snextpr 235956
special_primes 9864
squfof 2269
squfof_ambig 2269
tridiv_bound 22832
u_forprime_next_fast 341178265
uis_357_power 982621
uis_357_powermod 1016248
uis_357_powermod_32bit_1 8806
uis_357_powermod_32bit_2 425
unextprime 4514609
update_pow 377
uprecprime 25
utridiv_bound 1852850

Generated by: LCOV version 1.9