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 23328-a3379c31c) Lines: 595 604 98.5 %
Date: 2018-12-09 05:41:42 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 61033
blocks4 497
both_pm1 4658
check_symmetric 4333
completebasis 83497
det_minors 784
hilberts 7273
id 973
kermodp 49805
partialgaussred 21203
principal_minor 28876
qf_apply_tau 12375
qf_apply_transvect_Z 4172
qfb 8456
qfb_factorback 3955
qfbreduce 1722
qfbsqrt 2268
qflllgram_indef 21203
qflllgram_indefgoon 10983
qflllgram_indefgoon2 2268
qflocalinvariant 119
qflocalinvariants 4620
qfminimize 8211
qfparam 42
qfsolve 4291
qfsolve_i 4291
qfsolvemodp 17969
qftriv 21203
quadclass2 2660
vecextend 33685

Generated by: LCOV version 1.13