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 29420-55f63b8cfe) Lines: 609 719 84.7 %
Date: 2024-07-03 09:03:24 Functions: 31 32 96.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
combine_large_primes 12986
decimal_len 7336
frel_add 337092
mpqs 2450
mpqs_FB_ctor 2443
mpqs_add_factor 7217860
mpqs_create_FB 2443
mpqs_eval_cand 131271
mpqs_eval_sieve 141493
mpqs_find_k 2443
mpqs_increment 7508
mpqs_locate_A_range 2443
mpqs_poly_ctor 2443
mpqs_self_init 141493
mpqs_set_parameters 2443
mpqs_set_sieve_threshold 2443
mpqs_si_choose_primes 10009
mpqs_sieve 141493
mpqs_sieve_array_ctor 2443
mpqs_sieve_p 826974
mpqs_sieve_p1 131662608
mpqs_sieve_p2 54539014
mpqs_solve_linear_system 2495
rel_Y 25972
rel_p 25972
rel_q 12986
rel_to_ei 326228
rels_to_F2Ms 2495
split 5434
split_relp 0
toolarge 7
zv_is_even 12986

Generated by: LCOV version 1.16