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.12.0 lcov report (development 23694-b3ccec097) Lines: 595 604 98.5 %
Date: 2019-03-20 05:44:21 Functions: 30 30 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
ZsymM_Z_divexact 61041
blocks4 497
both_pm1 4692
check_symmetric 4333
completebasis 83533
det_minors 784
hilberts 7268
id 975
kermodp 49810
partialgaussred 21205
principal_minor 28907
qf_apply_tau 12348
qf_apply_transvect_Z 4126
qfb 8449
qfb_factorback 3952
qfbreduce 1720
qfbsqrt 2266
qflllgram_indef 21205
qflllgram_indefgoon 10987
qflllgram_indefgoon2 2266
qflocalinvariant 119
qflocalinvariants 4617
qfminimize 8212
qfparam 42
qfsolve 4291
qfsolve_i 4291
qfsolvemodp 17972
qftriv 21205
quadclass2 2661
vecextend 33717

Generated by: LCOV version 1.13