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 16624-25b9976) Lines: 1381 1685 82.0 %
Date: 2014-06-24 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 25391
SHALLOWCOPY 0
STORE 119598
STOREi 13235
STOREu 106348
ZV_aff 4360
Z_factor 872286
Z_factor_limit 3490
Z_factor_until 485
Z_issmooth 0
Z_issmooth_fact 149933
absi_factor 336445
absi_factor_limit 6426
alloc_scratch 25
aux_end 25677
check_res 1312895
core 220
coreu 122
ecm_elladd 26375
ecm_elladd0 26755
ecm_elladd2 700
elldouble 5510
ellfacteur 415
ellmult 3690
factorint 10
factoru 300877
factoru_sign 1494337
get_rule 21795
ifac_GC 0
ifac_check 0
ifac_checkprime 5760
ifac_core 19
ifac_crack 2886
ifac_decomp 851
ifac_defrag 150
ifac_delete 22367
ifac_divide 5120
ifac_factor_dbg 0
ifac_factoru 582
ifac_find 7637
ifac_insert_multiplet 490
ifac_ispowerful 5
ifac_isprime 8545
ifac_main 7565
ifac_moebius 185
ifac_moebiusu 712
ifac_next 4968
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 2739
ifac_whoiswho 2956
ifactor 876271
ifactor_sign 1219142
is_357_power 988111
is_kth_power 21685
is_pth_power 20335
ispowerful 210
moebius 942
moebiusu 8109
nextprime 1366242
pollardbrent 2684
precprime 25
rho_dbg 0
snextpr 168540
special_primes 7123
squfof 1624
squfof_ambig 1634
tridiv_bound 20347
u_forprime_next_fast 236916096
uis_357_power 701037
uis_357_powermod 723470
uis_357_powermod_32bit_1 8813
uis_357_powermod_32bit_2 429
unextprime 3171232
update_pow 292
uprecprime 17
utridiv_bound 1342589

Generated by: LCOV version 1.9