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 17240-4611fa9) Lines: 1381 1685 82.0 %
Date: 2014-12-21 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 35576
SHALLOWCOPY 0
STORE 151203
STOREi 16581
STOREu 134601
ZV_aff 6104
Z_factor 1208613
Z_factor_limit 5502
Z_factor_until 679
Z_issmooth 0
Z_issmooth_fact 269850
absi_factor 471682
absi_factor_limit 10367
alloc_scratch 35
aux_end 31075
check_res 1838553
core 280
coreu 733
ecm_elladd 36925
ecm_elladd0 37457
ecm_elladd2 980
elldouble 7714
ellfacteur 574
ellmult 5166
factorint 14
factoru 500856
factoru_sign 2166617
get_rule 30513
ifac_GC 0
ifac_check 0
ifac_checkprime 8083
ifac_core 19
ifac_crack 4050
ifac_decomp 1167
ifac_defrag 210
ifac_delete 31340
ifac_divide 7187
ifac_factor_dbg 0
ifac_factoru 848
ifac_find 10698
ifac_insert_multiplet 679
ifac_ispowerful 7
ifac_isprime 11723
ifac_main 10620
ifac_moebius 189
ifac_moebiusu 1068
ifac_next 7078
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 3837
ifac_whoiswho 4148
ifactor 1214808
ifactor_sign 1696857
is_357_power 1382603
is_kth_power 30345
is_pth_power 28547
ispowerful 294
moebius 1010
moebiusu 12055
nextprime 2032427
pollardbrent 3774
precprime 35
rho_dbg 0
snextpr 235956
special_primes 9985
squfof 2269
squfof_ambig 2276
tridiv_bound 23044
u_forprime_next_fast 344815039
uis_357_power 982842
uis_357_powermod 1016465
uis_357_powermod_32bit_1 8817
uis_357_powermod_32bit_2 426
unextprime 5317663
update_pow 395
uprecprime 25
utridiv_bound 1934956

Generated by: LCOV version 1.9