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 - kernel/none - halfgcd.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29367-59464ac63f) Lines: 206 210 98.1 %
Date: 2024-05-21 08:08:53 Functions: 19 19 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
mulqab 59
matid2 666
lastq 1169
mulqi 1169
mulT 6820
FIXUP0 107718
HGCD_split 111442
FIXUP1 165447
mulq 2982979
ZM_inv2 6211113
halfgcdii 6211700
signdet 6376389
ZM2_mul 7089553
HGCD_basecase 14990824
HGCD 15101960
magic_threshold 23119128
isint2n 23173049
uexpi 23173359
HGCD0 29506573

Generated by: LCOV version 1.14