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 - modules Hit Total Coverage
Test: PARI/GP v2.14.0 lcov report (development 27024-156ad7025e) Lines: 11211 11910 94.1 %
Date: 2021-10-24 07:03:56 Functions: 729 742 98.2 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
algebras.c
96.7%96.7%
96.7 % 2985 / 3088 98.1 % 264 / 269
elldata.c
94.7%94.7%
94.7 % 144 / 152 100.0 % 16 / 16
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
forperm.c
100.0%
100.0 % 37 / 37 100.0 % 4 / 4
forsubset.c
100.0%
100.0 % 53 / 53 100.0 % 7 / 7
galois.c
96.2%96.2%
96.2 % 1771 / 1841 97.2 % 69 / 71
galpol.c
83.6%83.6%
83.6 % 46 / 55 100.0 % 4 / 4
genus2red.c
91.9%91.9%
91.9 % 1310 / 1426 100.0 % 54 / 54
groupid.c
85.7%85.7%
85.7 % 192 / 224 87.5 % 7 / 8
krasner.c
98.0%98.0%
98.0 % 440 / 449 100.0 % 34 / 34
mpqs.c
83.6%83.6%
83.6 % 600 / 718 96.9 % 31 / 32
part.c
81.5%81.5%
81.5 % 154 / 189 92.3 % 12 / 13
ratpoints.c
97.4%97.4%
97.4 % 839 / 861 100.0 % 33 / 33
stark.c
93.1%93.1%
93.1 % 1667 / 1791 98.4 % 127 / 129
thue.c
94.9%94.9%
94.9 % 910 / 959 98.4 % 61 / 62

Generated by: LCOV version 1.13