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 16358-a11f489) Lines: 575 675 85.2 %
Date: 2014-04-11 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 110
RgV_is_ZVnon0 215
RgV_is_ZVpos 218806
Z_issquarefree 765
Z_smoothen 7881
_mod4 20
bigomega 140
boundfact 35
check_arith_all 105490
check_arith_non0 2157
check_arith_pos 0
check_basis 90
clean_Z_factor 115
core0 190
core2 50
core2_i 60
core2fa 120
core2partial 120
coredisc 10
coredisc0 10
coredisc2 10
corefa 0
corepartial 0
digits 35
digits_dac 660
digits_dacsmall 2180
divisors 258095
divisors_init 258125
divisorsu 21706
euler_sumdiv 1434
euler_sumdivk 338
eulerphi 103000
eulerphiu 105976
eulerphiu_fact 106201
factor_pn_1 4718
factor_pn_1_limit 4718
factorlim 16875
factoru_pow 18031
get_vB 50
good_arena_size 827
init_primepointer_geq 0
init_primepointer_gt 0
init_primepointer_leq 0
init_primepointer_lt 4400256
initprimes 827
initprimes0 827
initprimes1 827
initprimetable 827
is_Z_factor 110
is_Z_factor_i 109573
is_Z_factornon0 215
is_Z_factorpos 109248
issquarefree 25
maxprime 9424150
maxprime_check 0
numdiv 140
numdiv_aux 49
omega 140
set_fact 7590
set_fact_check 250535
set_optimize 0
set_vexp 490
sieve_chunk 1972
sumdigits 25
sumdigits0 75
sumdigits_block 10
sumdigitsu 253680
sumdiv 140
sumdiv_aux 39
sumdivk 490
sumdivk_aux 78
u_euler_sumdiv 401
u_euler_sumdivk 927
uissquarefree 5378
uissquarefree_fact 70
usumdivkvec 20

Generated by: LCOV version 1.9