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 16741-1378b1c) Lines: 1381 1685 82.0 %
Date: 2014-08-17 Functions: 75 84 89.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1043 1519 68.7 %

Function Name Sort by function name Hit count Sort by hit count
COPY 0
FpE_add_i 236800
INIT 25157
SHALLOWCOPY 0
STORE 119357
STOREi 13240
STOREu 106102
ZV_aff 4360
Z_factor 877717
Z_factor_limit 3495
Z_factor_until 485
Z_issmooth 0
Z_issmooth_fact 193285
absi_factor 336435
absi_factor_limit 6405
alloc_scratch 25
aux_end 25602
check_res 1312738
core 220
coreu 122
ecm_elladd 26375
ecm_elladd0 26755
ecm_elladd2 700
elldouble 5510
ellfacteur 410
ellmult 3690
factorint 10
factoru 300852
factoru_sign 1499792
get_rule 21795
ifac_GC 0
ifac_check 0
ifac_checkprime 5693
ifac_core 19
ifac_crack 2860
ifac_decomp 829
ifac_defrag 150
ifac_delete 22159
ifac_divide 5068
ifac_factor_dbg 0
ifac_factoru 578
ifac_find 7559
ifac_insert_multiplet 485
ifac_ispowerful 5
ifac_isprime 8466
ifac_main 7487
ifac_moebius 185
ifac_moebiusu 712
ifac_next 4956
ifac_print 0
ifac_read 54
ifac_realloc 0
ifac_resort 75
ifac_skip 18
ifac_sort_one 75
ifac_start 1306
ifac_start_hint 2713
ifac_whoiswho 2930
ifactor 881707
ifactor_sign 1224547
is_357_power 988055
is_kth_power 21685
is_pth_power 20304
ispowerful 210
moebius 942
moebiusu 8109
nextprime 1447579
pollardbrent 2663
precprime 25
rho_dbg 0
snextpr 168540
special_primes 7106
squfof 1603
squfof_ambig 1603
tridiv_bound 20281
u_forprime_next_fast 243598539
uis_357_power 701016
uis_357_powermod 723425
uis_357_powermod_32bit_1 8802
uis_357_powermod_32bit_2 425
unextprime 3224693
update_pow 267
uprecprime 17
utridiv_bound 1347976

Generated by: LCOV version 1.9