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 29712-7c8a932571) Lines: 1578 1918 82.3 %
Date: 2024-11-15 09:08:45 Functions: 93 107 86.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
COPY 0
ECM_alloc 65
ECM_init 65
ECM_loop 102
FpE_add_i 8303292
INIT 53786
SHALLOWCOPY 0
STORE 966485
STOREi 50169
STOREu 916164
ZV_aff 26135
Z_ECM 0
Z_factor 9627281
Z_factor_limit 49443
Z_factor_until 3045
Z_issmooth 0
Z_issmooth_fact 178393
Z_pollardbrent 0
absZ_factor 3276578
absZ_factor_limit 290559
absZ_factor_limit_strict 886416
aux_end 147393
check_res 3929152
core 708625
coreu 61989
coreu_fact 61989
ecm_elladd 235914
ecm_elladd0 241870
ecm_elladd2 7233
elldouble 40628
ellfacteur 3281
ellmult 26036
factorint 10290
factoru 3803278
factoru_sign 20482073
get_rule 209741
ifac_GC 0
ifac_check 0
ifac_checkprime 11678
ifac_core 323
ifac_crack 5965
ifac_decomp 2634
ifac_defrag 14
ifac_delete 47566
ifac_divide 10246
ifac_factor_dbg 0
ifac_factoru 988
ifac_find 15837
ifac_insert_multiplet 3318
ifac_ispowerful 7
ifac_isprime 31805
ifac_main 14847
ifac_moebius 211
ifac_moebiusu 684
ifac_next 7094
ifac_print 0
ifac_read 682
ifac_realloc 0
ifac_resort 7
ifac_skip 308
ifac_sort_one 7
ifac_start 2535
ifac_start_hint 6157
ifac_whoiswho 5958
ifactor 9687039
ifactor_sign 14267625
is_357_power 2801637
is_kth_power 469713
is_pth_power 69326
ispowerful 1708
matsmalltrunc_append 98732179
matsmalltrunc_init 38558291
maxomegaoddu 2233
maxomegau 71594
moebius 55864
moebiusu 2514368
moebiusu_fact 54194
nextprime 126847
one_iter 27701106
pollardbrent 5258
pollardbrent_i 439
precprime 49
radicalu 0
rho_dbg 0
snextpr 4535017
special_primes 39454
squfof 4974
squfof_ambig 2158
tridiv_bound 881968
tridiv_boundu 11833272
u_forprime_next_fast 198661571
uis_357_power 2367395
uis_357_powermod 2422212
uis_357_powermod_32bit_1 14411
uis_357_powermod_32bit_2 826
uisprime_nosmall 18763
unextprime 1037644
unextprime_overflow 900548
update_pow 944
uprecprime 32
vecfactoroddu 0
vecfactoroddu_i 2233
vecfactorsquarefreeu 7014
vecfactorsquarefreeu_coprime 32578
vecfactoru 0
vecfactoru_i 31925
vecsquarefreeu 49

Generated by: LCOV version 1.16