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 - prime.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17242-6994acc) Lines: 565 613 92.2 %
Date: 2014-12-22 Functions: 61 64 95.3 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 402 514 78.2 %

Function Name Sort by function name Hit count Sort by hit count
BLS_test 322
BPSW_isprime 448322
BPSW_isprime_big 4361
BPSW_isprime_small 454048
BPSW_psp 933567
BPSW_psp_nosmalldiv 15986
Fl_MR_Jaeschke 2370
Fl_MR_Jaeschke_ok 1801191
Fl_bad_for_base 8631431
Fl_init_MR_Jaeschke 8629103
IsLucasPsP 13673
LucasMod 13673
MR_Jaeschke 2611
MR_Jaeschke_ok 6179
addp 161
addp_union 28
addprimes 161
bad_for_base 67632
check_prime 5726
cleanprimetab 21
gisprime 1372
gispseudoprime 14
gprimepi_lower_bound 1
gprimepi_upper_bound 1
init_MR_Jaeschke 67433
is_2_prp_101 1934957
isanypower_nosmalldiv 7683
isprime 715311
isprimePL 686
isprimeSelfridge 2744
ispseudoprime 0
iu_coprime 226693
millerrabin 28
pl831 16555
prime 168
prime_successor 70
prime_table_closest_p 5796818
prime_table_find_n 161
prime_table_next_p 5796700
primepi 245
primepi_lower_bound 14
primepi_upper_bound 8889
primes 49
primes0 91
primes_interval 42
primes_interval_i 117
primes_interval_zv 26
primes_upto_zv 91
primes_zv 0
randomprime 49
removeprimes 28
rmprime 28
rmprimes 28
selfridge_init 679
uBPSW_psp 6691895
u_2_prp 8626733
u_LucasMod 2984589
uislucaspsp 2984596
uisprime 18891169
uisprime_101 16481
uisprime_661 26723
uprime 0
uprimepi 6453
uu_coprime 31177736

Generated by: LCOV version 1.9