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 16746-c2cb716) Lines: 920 1136 81.0 %
Date: 2014-08-31 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 770
mpqs 385
mpqs_FB_ctor 385
mpqs_add_0 155965
mpqs_add_factor 2090978
mpqs_add_relation 78902
mpqs_append_file 6436
mpqs_combine_large_primes 272
mpqs_create_FB 385
mpqs_eval_cand 25185
mpqs_eval_sieve 25375
mpqs_find_k 385
mpqs_get_filename 2310
mpqs_get_relation 78902
mpqs_handle_ctor 385
mpqs_handle_dtor 385
mpqs_i 385
mpqs_increment 2163
mpqs_locate_A_range 385
mpqs_mergesort_lp_file 6466
mpqs_mergesort_lp_file0 6466
mpqs_poly_ctor 385
mpqs_relations_cmp 714645
mpqs_self_init 25375
mpqs_set_exponents 5350
mpqs_set_parameters 385
mpqs_set_sieve_threshold 385
mpqs_si_choose_primes 2548
mpqs_sieve 25375
mpqs_sieve_array_ctor 385
mpqs_sieve_p 32363840
mpqs_solve_linear_system 385
mpqs_sort_lp_file 6466
pari_fputs 1116084
paristrtok_r 5845638
set_lp_entry 5285
split 880
stream_read_F2m 385

Generated by: LCOV version 1.9