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 21921-ca7d0c8) Lines: 1464 1823 80.3 %
Date: 2018-02-20 06:16:13 Functions: 87 100 87.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
COPY 0
SHALLOWCOPY 0
Z_ECM 0
Z_issmooth 0
Z_pollardbrent 0
ifac_GC 0
ifac_check 0
ifac_factor_dbg 0
ifac_print 0
ifac_realloc 0
rho_dbg 0
vecfactoroddu 0
vecsquarefreeu 0
ifac_ispowerful 7
factorint 14
ifac_skip 32
uprecprime 32
ifac_core 33
precprime 49
ECM_alloc 71
ECM_init 71
Z_factor_until 84
ifac_read 88
ifac_resort 98
ifac_sort_one 98
ECM_loop 121
ifac_defrag 196
ifac_moebius 196
update_pow 367
ellfacteur 393
ifac_insert_multiplet 466
uis_357_powermod_32bit_2 470
ifac_factoru 878
ifac_moebiusu 1068
ifac_decomp 1208
ifac_start 1416
ispowerful 1708
vecfactoroddu_i 1899
squfof 2123
squfof_ambig 2339
core 3220
pollardbrent 3359
pollardbrent_i 3359
ifac_start_hint 3502
ifac_crack 3635
ifac_whoiswho 3726
coreu 5338
coreu_fact 5338
ifac_next 6640
ifac_divide 6724
ifac_checkprime 7148
ecm_elladd2 7334
Z_factor_limit 9678
ifac_main 10235
ifac_isprime 10293
special_primes 10335
ifac_find 10355
uis_357_powermod_32bit_1 10373
vecfactorsquarefreeu 13678
vecfactoru 13790
vecfactoru_i 13881
STOREi 16987
tridiv_bound 23291
absZ_factor_limit 25046
ellmult 27036
ZV_aff 27974
ifac_delete 28825
aux_end 32163
INIT 32677
is_pth_power 39524
elldouble 42166
moebius 61861
moebiusu_fact 70077
moebiusu 103082
STOREu 137680
STORE 154688
Z_issmooth_fact 195534
is_kth_power 202132
get_rule 213753
ecm_elladd 241333
ecm_elladd0 247445
uis_357_power 983248
uis_357_powermod 1026240
is_357_power 1393941
check_res 1859991
nextprime 2036046
unextprime 3685135
factoru 4531636
absZ_factor 4554125
snextpr 4581948
Z_factor 6635785
ifactor 6645561
FpE_add_i 8349008
ifactor_sign 11224733
utridiv_bound 15607206
factoru_sign 15724152
one_iter 29129154
matsmalltrunc_init 32796571
matsmalltrunc_append 84842197
u_forprime_next_fast 440703259

Generated by: LCOV version 1.11