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 20459-9710128) Lines: 919 1137 80.8 %
Date: 2017-04-28 05:33:48 Functions: 38 38 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
decimal_len 540
mpqs 270
mpqs_FB_ctor 270
mpqs_add_0 206328
mpqs_add_factor 3221838
mpqs_add_relation 87852
mpqs_append_file 4386
mpqs_combine_large_primes 366
mpqs_create_FB 270
mpqs_eval_cand 50148
mpqs_eval_sieve 51516
mpqs_find_k 270
mpqs_get_filename 1620
mpqs_get_relation 87852
mpqs_handle_ctor 270
mpqs_handle_dtor 270
mpqs_i 270
mpqs_increment 2106
mpqs_locate_A_range 270
mpqs_mergesort_lp_file 4428
mpqs_mergesort_lp_file0 4428
mpqs_poly_ctor 270
mpqs_relations_cmp 1447254
mpqs_self_init 51516
mpqs_set_exponents 22584
mpqs_set_parameters 270
mpqs_set_sieve_threshold 270
mpqs_si_choose_primes 2376
mpqs_sieve 51516
mpqs_sieve_array_ctor 270
mpqs_sieve_p 216085248
mpqs_solve_linear_system 270
mpqs_sort_lp_file 4428
pari_fputs 1401948
paristrtok_r 6877236
set_lp_entry 22218
split 576
stream_read_F2m 270

Generated by: LCOV version 1.11