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 - basemath - mpqs.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.18.0 lcov report (development 29712-7c8a932571) Lines: 695 841 82.6 %
Date: 2024-11-15 09:08:45 Functions: 34 38 89.5 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
combine_large_primes 12720
decimal_len 9905
frel_add 393217
mpqs 3297
mpqs_FB_ctor 3318
mpqs_add_factor 7678988
mpqs_class_init 28
mpqs_class_rels 336
mpqs_create_FB 3318
mpqs_eval_cand 135046
mpqs_eval_sieve 144729
mpqs_find_k 3290
mpqs_increment 9337
mpqs_locate_A_range 3318
mpqs_poly_ctor 3318
mpqs_self_init 144729
mpqs_set_parameters 3318
mpqs_set_sieve_threshold 3318
mpqs_si_choose_primes 12725
mpqs_sieve 144729
mpqs_sieve_array_ctor 3318
mpqs_sieve_p 820151
mpqs_sieve_p1 127064707
mpqs_sieve_p2 53228702
mpqs_solve_linear_system 3380
mpqs_status 0
rel_Y 25440
rel_add_ei 0
rel_p 25440
rel_sub_ei 0
rel_to_ei 366585
rels_to_F2Ms 3380
rels_to_pairs 10465
rels_to_quad 336
split 7282
split_relp 0
toolarge 7
zv_is_even 12720

Generated by: LCOV version 1.16