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 29115-f22e516b23) Lines: 1556 1897 82.0 %
Date: 2024-04-29 08:07:43 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
uprecprime 32
precprime 49
vecsquarefreeu 49
ECM_alloc 71
ECM_init 71
Z_factor_until 98
ifac_resort 112
ifac_sort_one 112
ECM_loop 114
ifac_moebius 211
ifac_defrag 224
ifac_skip 296
ifac_core 311
ifac_read 658
uis_357_powermod_32bit_2 813
ellfacteur 946
update_pow 950
ifac_factoru 993
ifac_moebiusu 1074
ifac_insert_multiplet 1082
ispowerful 1708
ifac_start 1911
maxomegaoddu 2203
vecfactoroddu_i 2203
ifac_decomp 2643
squfof_ambig 2843
squfof 3152
pollardbrent 4815
pollardbrent_i 4815
ifac_crack 5542
ifac_start_hint 5547
ifac_whoiswho 5647
vecfactorsquarefreeu 7014
ifac_next 7194
ecm_elladd2 7474
ifac_divide 9877
factorint 10290
ifac_checkprime 10671
uis_357_powermod_32bit_1 14110
ifac_main 14959
ifac_find 15913
Z_factor_limit 20362
vecfactorsquarefreeu_coprime 20530
ellmult 27351
ZV_aff 28044
ifac_isprime 30296
vecfactoru_i 31911
special_primes 39262
elldouble 42656
ifac_delete 44652
INIT 50563
uisprime_nosmall 52210
moebiusu_fact 54173
moebius 54286
maxomegau 59532
coreu 59573
coreu_fact 59573
STOREi 61655
is_pth_power 69550
nextprime 126839
Z_issmooth_fact 198262
get_rule 218303
ecm_elladd 246226
ecm_elladd0 252408
aux_end 275085
absZ_factor_limit 290470
is_kth_power 487473
core 706791
absZ_factor_limit_strict 888382
tridiv_bound 1007210
unextprime_overflow 1241490
unextprime 1253500
STOREu 1365650
STORE 1427453
uis_357_power 2456116
moebiusu 2503341
uis_357_powermod 2510909
is_357_power 2793912
absZ_factor 3507351
factoru 3776567
check_res 4060778
snextpr 4634168
FpE_add_i 8397084
Z_factor 9520627
ifactor 9551312
ifactor_sign 14478098
tridiv_boundu 28267256
factoru_sign 32077379
one_iter 32831033
matsmalltrunc_init 37708388
matsmalltrunc_append 96061980
u_forprime_next_fast 235797271

Generated by: LCOV version 1.14