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 to exceed 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.16.2 lcov report (development 29419-8afb0ed749) Lines: 1577 1918 82.2 %
Date: 2024-07-02 09:03:41 Functions: 93 107 86.9 %
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
radicalu 0
rho_dbg 0
vecfactoroddu 0
vecfactoru 0
ifac_ispowerful 7
ifac_resort 7
ifac_sort_one 7
ifac_defrag 14
uprecprime 32
precprime 49
vecsquarefreeu 49
ECM_alloc 72
ECM_init 72
Z_factor_until 98
ECM_loop 109
ifac_moebius 211
ifac_skip 308
ifac_core 323
pollardbrent_i 425
ifac_read 682
ifac_moebiusu 684
uis_357_powermod_32bit_2 815
update_pow 944
ifac_factoru 988
ifac_start 1527
ispowerful 1708
squfof_ambig 1891
maxomegaoddu 2293
vecfactoroddu_i 2293
ellfacteur 2434
ifac_insert_multiplet 2471
ifac_decomp 2627
squfof 3966
pollardbrent 4229
ifac_whoiswho 4929
ifac_crack 4936
ifac_start_hint 5142
ifac_next 6009
vecfactorsquarefreeu 7014
ecm_elladd2 7485
ifac_divide 9126
ifac_checkprime 9557
factorint 10290
ifac_main 13720
uis_357_powermod_32bit_1 14203
ifac_find 14710
uisprime_nosmall 18763
ellmult 27240
ZV_aff 27339
ifac_isprime 29058
vecfactoru_i 31918
vecfactorsquarefreeu_coprime 32574
special_primes 39304
ifac_delete 40356
elldouble 42413
Z_factor_limit 45191
INIT 45561
STOREi 50137
moebiusu_fact 54173
moebius 57388
coreu 61931
coreu_fact 61931
is_pth_power 68172
maxomegau 71583
nextprime 126847
aux_end 145288
Z_issmooth_fact 179006
get_rule 217707
ecm_elladd 245357
ecm_elladd0 251467
absZ_factor_limit 289980
is_kth_power 469612
core 709165
tridiv_bound 877941
absZ_factor_limit_strict 888543
STOREu 900810
STORE 951099
unextprime_overflow 1094835
unextprime 1232060
uis_357_power 2366444
uis_357_powermod 2421211
moebiusu 2515043
is_357_power 2800420
absZ_factor 3335321
factoru 3809528
check_res 3926927
snextpr 4612605
FpE_add_i 8391380
Z_factor 9624732
ifactor 9680255
tridiv_boundu 11878929
ifactor_sign 14316403
factoru_sign 20535650
one_iter 28579074
matsmalltrunc_init 37733869
matsmalltrunc_append 96131020
u_forprime_next_fast 199395423

Generated by: LCOV version 1.16