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 to exceed 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 - mpqs.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 601 719 83.6 %
Date: 2024-02-28 08:03:13 Functions: 31 32 96.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
split_relp 0
toolarge 7
mpqs_FB_ctor 956
mpqs_create_FB 956
mpqs_find_k 956
mpqs_locate_A_range 956
mpqs_poly_ctor 956
mpqs_set_parameters 956
mpqs_set_sieve_threshold 956
mpqs_sieve_array_ctor 956
mpqs 963
mpqs_solve_linear_system 963
rels_to_F2Ms 963
split 2094
decimal_len 2875
mpqs_increment 5083
mpqs_si_choose_primes 6039
combine_large_primes 12986
rel_q 12986
zv_is_even 12986
rel_Y 25972
rel_p 25972
mpqs_eval_cand 116177
mpqs_eval_sieve 126217
mpqs_self_init 126217
mpqs_sieve 126217
frel_add 235953
rel_to_ei 242153
mpqs_sieve_p 777784
mpqs_add_factor 6136160
mpqs_sieve_p2 53432582
mpqs_sieve_p1 131635245

Generated by: LCOV version 1.14