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 to exceed 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 - qfsolve.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.1 lcov report (development 28676-df828f1c94) Lines: 613 623 98.4 %
Date: 2023-08-26 07:54:43 Functions: 34 34 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
qfminimize 14
symmetric_non0_coeff 14
qfbmat2 21
det_minors 700
id 994
qfbmat 1673
witt 2121
blocks4 2220
qfbsqrt 2282
qflllgram_indefgoon2 2282
quadclass2 2688
qfb_factorback 3976
qf_apply_transvect_Z 4131
qfparam 7133
hilberts 7294
qflllgram_indefgoon 11102
qfsolve 12502
qfsolve_i 12502
qf_apply_tau 13335
qfminimize_fact 16016
qfsolvemodp 18053
both_pm1 19364
check_symmetric 19649
ZsymM_Z_divexact 20273
principal_minor 33182
prod_fm 41487
partialgaussred 44401
qflllgram_indef 44401
qftriv 44401
update_fm 72774
ZsymM_Z_divexact_partial 92186
vecextend 116167
kermodp 285494
completebasis 408535

Generated by: LCOV version 1.14