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 - basemath - Flxq_log.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 440 474 92.8 %
Date: 2017-04-28 05:33:48 Functions: 29 29 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
Flx_addifsmooth3 63648
Flx_cindex 324708
Flx_cnext 318993
Flx_frob 6282
Flx_renormalize_inplace 319014
Flxq_log_Coppersmith 6
Flxq_log_Coppersmith_d 11
Flxq_log_Coppersmith_rec 12
Flxq_log_Coppersmith_worker 438
Flxq_log_cubic 12
Flxq_log_find_rel 36
Flxq_log_from_rel 11
Flxq_log_index 18
Flxq_log_index_Coppersmith 6
Flxq_log_index_cubic 12
Flxq_log_rec 24
Flxq_log_use_index 26478
Flxq_log_use_index_cubic 108
check_kernel 18
cindex_Flx 2817
factorel 6240
has_deg1_auto 18
rel_Coppersmith 7630
smallirred_Flx 18
smallirred_Flx_next 18
smooth_best 120
smooth_cost 1182
smoothness_vec 1464
vec_append_grow 643

Generated by: LCOV version 1.11