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-bordeaux.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.10.0 lcov report (development 20459-9710128) Lines: 548 632 86.7 %
Date: 2017-04-29 05:33:44 Functions: 63 68 92.6 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
BLS_test 54
BPSW_isprime 883181
BPSW_isprime_small 883123
BPSW_psp 5704535
BPSW_psp_nosmalldiv 11460
BPSW_try_PL 4296
Fl_MR_Jaeschke 1452
Fl_MR_Jaeschke_ok 841723
Fl_bad_for_base 3326688
Fl_init_MR_Jaeschke 3321405
IsLucasPsP 6768
LucasMod 6768
MR_Jaeschke 1530
MR_Jaeschke_ok 3246
PL_certificate 24
PL_certify 2636
addp 138
addp_union 24
addprimes 138
bad_for_base 48868
check_prime 42
cleanprimetab 18
gisprime 3473792
gispseudoprime 12
gprimepi_lower_bound 0
gprimepi_upper_bound 0
init_MR_Jaeschke 48790
is_2_prp_101 1645777
isanypower_nosmalldiv 6690
isprime 4214627
isprimePL 30
ispseudoprime 0
iu_coprime 126999
millerrabin 24
pari_init_primetab 1225
pari_pthread_init_primetab 3945
pari_thread_init_primetab 63590
pl831 13056
prime 144
prime_successor 60
prime_table_closest_p 10382597
prime_table_find_n 138
prime_table_next_p 10382509
primepi 216
primepi_lower_bound 12
primepi_upper_bound 46728
primes 54
primes0 102
primes_interval 84
primes_interval_i 6252
primes_interval_zv 6150
primes_upto_zv 102
primes_zv 0
randomprime 42
removeprimes 24
rmprime 24
rmprimes 24
uBPSW_psp 1304174
u_2_prp 3318661
u_LucasMod 32804
u_LucasMod_pre 343374
uislucaspsp 376184
uisprime 16613134
uisprime_101 4410652
uisprime_661 23856
uprime 0
uprimepi 7950
uu_coprime 15356679

Generated by: LCOV version 1.11