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.18.0 lcov report (development 29685-209b4888d8) Lines: 1579 1918 82.3 %
Date: 2024-11-05 09:09:42 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 65
ECM_init 65
ECM_loop 102
ifac_moebius 211
ifac_skip 308
ifac_core 323
pollardbrent_i 439
ifac_read 682
ifac_moebiusu 684
uis_357_powermod_32bit_2 826
update_pow 944
ifac_factoru 988
ispowerful 1708
squfof_ambig 2158
maxomegaoddu 2369
vecfactoroddu_i 2369
ifac_start 2535
ifac_decomp 2634
Z_factor_until 3045
ellfacteur 3281
ifac_insert_multiplet 3318
squfof 4974
pollardbrent 5258
ifac_whoiswho 5958
ifac_crack 5965
ifac_start_hint 6157
vecfactorsquarefreeu 7014
ifac_next 7094
ecm_elladd2 7233
ifac_divide 10246
factorint 10290
ifac_checkprime 11678
uis_357_powermod_32bit_1 14411
ifac_main 14847
ifac_find 15837
uisprime_nosmall 18763
ellmult 26036
ZV_aff 26135
ifac_isprime 31805
vecfactoru_i 31925
vecfactorsquarefreeu_coprime 32575
special_primes 39455
elldouble 40628
ifac_delete 47566
Z_factor_limit 49339
STOREi 50170
INIT 53786
moebiusu_fact 54194
moebius 54782
coreu 61989
coreu_fact 61989
is_pth_power 69333
maxomegau 71591
nextprime 126847
aux_end 147391
Z_issmooth_fact 178801
get_rule 209741
ecm_elladd 235914
ecm_elladd0 241870
absZ_factor_limit 290502
is_kth_power 469825
core 708620
tridiv_bound 881869
absZ_factor_limit_strict 886239
unextprime_overflow 900634
STOREu 916204
STORE 966526
unextprime 1037726
uis_357_power 2367396
uis_357_powermod 2422218
moebiusu 2503448
is_357_power 2801645
absZ_factor 3276412
factoru 3802273
check_res 3929154
snextpr 4535017
FpE_add_i 8303292
Z_factor 9626255
ifactor 9685919
tridiv_boundu 11829857
ifactor_sign 14266096
factoru_sign 20479444
one_iter 27687698
matsmalltrunc_init 39339837
matsmalltrunc_append 100303431
u_forprime_next_fast 198511439

Generated by: LCOV version 1.16