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 20777-d2a9243) Lines: 919 1137 80.8 %
Date: 2017-06-25 05:59:24 Functions: 38 38 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
decimal_len 680
mpqs 340
mpqs_FB_ctor 340
mpqs_add_0 395439
mpqs_add_factor 6590057
mpqs_add_relation 147446
mpqs_append_file 5400
mpqs_combine_large_primes 506
mpqs_create_FB 340
mpqs_eval_cand 112339
mpqs_eval_sieve 116135
mpqs_find_k 340
mpqs_get_filename 2040
mpqs_get_relation 147446
mpqs_handle_ctor 340
mpqs_handle_dtor 340
mpqs_i 340
mpqs_increment 3353
mpqs_locate_A_range 340
mpqs_mergesort_lp_file 5460
mpqs_mergesort_lp_file0 5460
mpqs_poly_ctor 340
mpqs_relations_cmp 3240010
mpqs_self_init 116135
mpqs_set_exponents 55982
mpqs_set_parameters 340
mpqs_set_sieve_threshold 340
mpqs_si_choose_primes 3693
mpqs_sieve 116135
mpqs_sieve_array_ctor 340
mpqs_sieve_p 586755177
mpqs_solve_linear_system 340
mpqs_sort_lp_file 5460
pari_fputs 2557605
paristrtok_r 12273452
set_lp_entry 55027
split 722
stream_read_F2m 340

Generated by: LCOV version 1.11