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 - mpqs.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21703-2e13792) Lines: 918 1135 80.9 %
Date: 2018-01-17 06:18:31 Functions: 38 38 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
mpqs 314
mpqs_FB_ctor 314
mpqs_create_FB 314
mpqs_find_k 314
mpqs_handle_ctor 314
mpqs_handle_dtor 314
mpqs_i 314
mpqs_locate_A_range 314
mpqs_poly_ctor 314
mpqs_set_parameters 314
mpqs_set_sieve_threshold 314
mpqs_sieve_array_ctor 314
mpqs_solve_linear_system 314
stream_read_F2m 314
mpqs_combine_large_primes 434
decimal_len 628
split 670
mpqs_get_filename 1884
mpqs_increment 2181
mpqs_si_choose_primes 2495
mpqs_append_file 5044
mpqs_mergesort_lp_file 5092
mpqs_mergesort_lp_file0 5092
mpqs_sort_lp_file 5092
set_lp_entry 22295
mpqs_set_exponents 22646
mpqs_eval_cand 53029
mpqs_eval_sieve 54355
mpqs_self_init 54355
mpqs_sieve 54355
mpqs_add_relation 129744
mpqs_get_relation 129744
mpqs_add_0 232591
mpqs_relations_cmp 1586396
pari_fputs 1621847
mpqs_add_factor 3638753
paristrtok_r 8868932
mpqs_sieve_p 223847821

Generated by: LCOV version 1.11