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-bordeaux1.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.8.0 lcov report (development 18583-be9c204) Lines: 923 1135 81.3 %
Date: 2016-02-07 Functions: 38 38 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 455 708 64.3 %

Function Name Sort by function name Hit count Sort by hit count
decimal_len 614
mpqs 307
mpqs_FB_ctor 307
mpqs_add_0 218615
mpqs_add_factor 3372624
mpqs_add_relation 91760
mpqs_append_file 4746
mpqs_combine_large_primes 422
mpqs_create_FB 307
mpqs_eval_cand 51478
mpqs_eval_sieve 52888
mpqs_find_k 307
mpqs_get_filename 1842
mpqs_get_relation 91760
mpqs_handle_ctor 307
mpqs_handle_dtor 307
mpqs_i 307
mpqs_increment 2174
mpqs_locate_A_range 307
mpqs_mergesort_lp_file 4794
mpqs_mergesort_lp_file0 4794
mpqs_poly_ctor 307
mpqs_relations_cmp 1512944
mpqs_self_init 52888
mpqs_set_exponents 23654
mpqs_set_parameters 307
mpqs_set_sieve_threshold 307
mpqs_si_choose_primes 2481
mpqs_sieve 52888
mpqs_sieve_array_ctor 307
mpqs_sieve_p 219864250
mpqs_solve_linear_system 307
mpqs_sort_lp_file 4794
pari_fputs 1469343
paristrtok_r 7197215
set_lp_entry 23275
split 712
stream_read_F2m 307

Generated by: LCOV version 1.9