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.1 lcov report (development 28676-df828f1c94) Lines: 601 719 83.6 %
Date: 2023-08-26 07:54:43 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 1094
mpqs_create_FB 1094
mpqs_find_k 1094
mpqs_locate_A_range 1094
mpqs_poly_ctor 1094
mpqs_set_parameters 1094
mpqs_set_sieve_threshold 1094
mpqs_sieve_array_ctor 1094
mpqs 1101
mpqs_solve_linear_system 1101
rels_to_F2Ms 1101
split 2552
decimal_len 3289
mpqs_increment 5912
mpqs_si_choose_primes 7006
combine_large_primes 12986
rel_q 12986
zv_is_even 12986
rel_Y 25972
rel_p 25972
mpqs_eval_cand 122709
mpqs_eval_sieve 133218
mpqs_self_init 133218
mpqs_sieve 133218
rel_to_ei 251401
frel_add 254685
mpqs_sieve_p 805773
mpqs_add_factor 6364487
mpqs_sieve_p2 54245542
mpqs_sieve_p1 131679618

Generated by: LCOV version 1.14