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 17238-ce76349) Lines: 920 1136 81.0 %
Date: 2014-12-20 Functions: 38 38 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 447 706 63.3 %

Function Name Sort by function name Hit count Sort by hit count
decimal_len 1078
mpqs 539
mpqs_FB_ctor 539
mpqs_add_0 218399
mpqs_add_factor 2927954
mpqs_add_relation 110928
mpqs_append_file 9012
mpqs_combine_large_primes 380
mpqs_create_FB 539
mpqs_eval_cand 35267
mpqs_eval_sieve 35533
mpqs_find_k 539
mpqs_get_filename 3234
mpqs_get_relation 110928
mpqs_handle_ctor 539
mpqs_handle_dtor 539
mpqs_i 539
mpqs_increment 3031
mpqs_locate_A_range 539
mpqs_mergesort_lp_file 9054
mpqs_mergesort_lp_file0 9054
mpqs_poly_ctor 539
mpqs_relations_cmp 999719
mpqs_self_init 35533
mpqs_set_exponents 7490
mpqs_set_parameters 539
mpqs_set_sieve_threshold 539
mpqs_si_choose_primes 3570
mpqs_sieve 35533
mpqs_sieve_array_ctor 539
mpqs_sieve_p 45313774
mpqs_solve_linear_system 539
mpqs_sort_lp_file 9054
pari_fputs 1561788
paristrtok_r 8199558
set_lp_entry 7399
split 1232
stream_read_F2m 539

Generated by: LCOV version 1.9