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 - arith2.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16375-9f41ae0) Lines: 575 675 85.2 %
Date: 2014-04-19 Functions: 68 76 89.5 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 324 461 70.3 %

Function Name Sort by function name Hit count Sort by hit count
RgV_is_ZV0 154
RgV_is_ZVnon0 301
RgV_is_ZVpos 307904
Z_issquarefree 771
Z_smoothen 11037
_mod4 28
bigomega 196
boundfact 49
check_arith_all 147686
check_arith_non0 2719
check_arith_pos 0
check_basis 126
clean_Z_factor 161
core0 266
core2 70
core2_i 84
core2fa 168
core2partial 168
coredisc 14
coredisc0 14
coredisc2 14
corefa 0
corepartial 0
digits 49
digits_dac 922
digits_dacsmall 3054
divisors 361333
divisors_init 361375
divisorsu 30416
euler_sumdiv 1998
euler_sumdivk 454
eulerphi 144200
eulerphiu 148382
eulerphiu_fact 148704
factor_pn_1 6616
factor_pn_1_limit 6616
factorlim 23665
factoru_pow 25245
get_vB 70
good_arena_size 1153
init_primepointer_geq 0
init_primepointer_gt 0
init_primepointer_leq 0
init_primepointer_lt 6163113
initprimes 1153
initprimes0 1153
initprimes1 1153
initprimetable 1153
is_Z_factor 154
is_Z_factor_i 154190
is_Z_factornon0 301
is_Z_factorpos 153735
issquarefree 35
maxprime 13194184
maxprime_check 0
numdiv 196
numdiv_aux 67
omega 196
set_fact 10626
set_fact_check 350749
set_optimize 0
set_vexp 686
sieve_chunk 2624
sumdigits 35
sumdigits0 105
sumdigits_block 14
sumdigitsu 355152
sumdiv 196
sumdiv_aux 53
sumdivk 686
sumdivk_aux 106
u_euler_sumdiv 571
u_euler_sumdivk 1317
uissquarefree 7830
uissquarefree_fact 105
usumdivkvec 28

Generated by: LCOV version 1.9