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 17110-9967e23) Lines: 1381 1685 82.0 %
Date: 2014-11-26 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 24962
SHALLOWCOPY 0
STORE 120223
STOREi 13269
STOREu 106939
ZV_aff 4360
Z_factor 856539
Z_factor_limit 3500
Z_factor_until 485
Z_issmooth 0
Z_issmooth_fact 192750
absi_factor 336464
absi_factor_limit 7130
alloc_scratch 25
aux_end 25810
check_res 1312626
core 200
coreu 521
ecm_elladd 26375
ecm_elladd0 26755
ecm_elladd2 700
elldouble 5510
ellfacteur 410
ellmult 3690
factorint 10
factoru 356749
factoru_sign 1535052
get_rule 21795
ifac_GC 0
ifac_check 0
ifac_checkprime 5677
ifac_core 15
ifac_crack 2839
ifac_decomp 824
ifac_defrag 150
ifac_delete 21989
ifac_divide 5052
ifac_factor_dbg 0
ifac_factoru 562
ifac_find 7510
ifac_insert_multiplet 485
ifac_ispowerful 5
ifac_isprime 8466
ifac_main 7450
ifac_moebius 185
ifac_moebiusu 712
ifac_next 4928
ifac_print 0
ifac_read 46
ifac_realloc 0
ifac_resort 75
ifac_skip 14
ifac_sort_one 75
ifac_start 1302
ifac_start_hint 2688
ifac_whoiswho 2909
ifactor 860534
ifactor_sign 1204128
is_357_power 988064
is_kth_power 21675
is_pth_power 20288
ispowerful 210
moebius 936
moebiusu 8395
nextprime 1453343
pollardbrent 2668
precprime 25
rho_dbg 0
snextpr 168540
special_primes 7136
squfof 1608
squfof_ambig 1608
tridiv_bound 20338
u_forprime_next_fast 244194620
uis_357_power 701035
uis_357_powermod 723417
uis_357_powermod_32bit_1 8804
uis_357_powermod_32bit_2 423
unextprime 3988250
update_pow 231
uprecprime 17
utridiv_bound 1371039

Generated by: LCOV version 1.9