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 - modules - ratpoints.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21353-12523aa) Lines: 823 846 97.3 %
Date: 2017-11-24 06:20:58 Functions: 31 31 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
to_ZX 28
ZX_homogenous_evalpow 56
ellratpoints 105
setup_us1 553
hyperell_check 7021
hyperellratpoints 7021
ZX_positive_region 7119
alloc_sieve 7119
find_points_init 7119
find_points_work 7119
gen_inverses 7119
gen_offsets 7119
gen_sieve 7119
gen_sieves0 7119
gen_squares 7119
get_2adic_info 7119
posint 7119
ratpoints_compute_sturm 7119
sieving_info 7119
ZX_hyperellratpoints 7126
vec_append_grow 24710
process 26873
compare_entries 674548
set_bc 679098
_ratpoints_check_point 1310092
sieve_init1 1505502
sieve_init2 4233301
sift 18282936
_ratpoints_sift0 23828417
rpjacobi 30463167
mod 420818952

Generated by: LCOV version 1.11