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-bordeaux1.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.8.0 lcov report (development 17587-9bb49d9) Lines: 1382 1685 82.0 %
Date: 2015-03-03 Functions: 75 84 89.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1051 1519 69.2 %

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 3004016
INIT 32204
SHALLOWCOPY 0
STORE 152355
STOREi 16843
STOREu 135491
ZV_aff 13394
Z_factor 1241138
Z_factor_limit 8921
Z_factor_until 28
Z_issmooth 0
Z_issmooth_fact 324248
absi_factor 471962
absi_factor_limit 10465
alloc_scratch 47
aux_end 31320
check_res 1838542
core 280
coreu 733
ecm_elladd 105061
ecm_elladd0 107453
ecm_elladd2 3098
elldouble 19198
ellfacteur 341
ellmult 12456
factorint 14
factoru 518316
factoru_sign 2219505
get_rule 91593
ifac_GC 0
ifac_check 0
ifac_checkprime 7160
ifac_core 19
ifac_crack 3606
ifac_decomp 1162
ifac_defrag 210
ifac_delete 28376
ifac_divide 6671
ifac_factor_dbg 0
ifac_factoru 872
ifac_find 10201
ifac_insert_multiplet 440
ifac_ispowerful 7
ifac_isprime 10152
ifac_main 10123
ifac_moebius 189
ifac_moebiusu 1068
ifac_next 6583
ifac_print 0
ifac_read 60
ifac_realloc 0
ifac_resort 105
ifac_skip 18
ifac_sort_one 105
ifac_start 1395
ifac_start_hint 3429
ifac_whoiswho 3704
ifactor 1250102
ifactor_sign 1732530
is_357_power 1382262
is_kth_power 30719
is_pth_power 28162
ispowerful 294
moebius 1010
moebiusu 14841
nextprime 2032455
pollardbrent 3337
precprime 35
rho_dbg 0
snextpr 1684620
special_primes 10029
squfof 2050
squfof_ambig 2290
tridiv_bound 22390
u_forprime_next_fast 392428244
uis_357_power 983046
uis_357_powermod 1016319
uis_357_powermod_32bit_1 8824
uis_357_powermod_32bit_2 427
unextprime 5324416
update_pow 374
uprecprime 25
utridiv_bound 1984560

Generated by: LCOV version 1.9