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.12.1 lcov report (development 23955-17de75d95) Lines: 11575 12366 93.6 %
Date: 2019-06-15 05:47:29 Functions: 758 769 98.6 %
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
97.2%97.2%
97.2 % 2976 / 3063 98.5 % 269 / 273
elldata.c
92.5%92.5%
92.5 % 136 / 147 100.0 % 15 / 15
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
forperm.c
100.0%
100.0 % 33 / 33 100.0 % 4 / 4
forsubset.c
100.0%
100.0 % 52 / 52 100.0 % 7 / 7
galois.c
96.3%96.3%
96.3 % 1636 / 1698 97.2 % 69 / 71
galpol.c
81.8%81.8%
81.8 % 45 / 55 100.0 % 4 / 4
genus2red.c
91.9%91.9%
91.9 % 1207 / 1314 100.0 % 54 / 54
groupid.c
84.8%84.8%
84.8 % 167 / 197 87.5 % 7 / 8
krasner.c
98.2%98.2%
98.2 % 435 / 443 100.0 % 34 / 34
mpqs.c
77.9%77.9%
77.9 % 664 / 852 96.9 % 31 / 32
part.c
81.7%81.7%
81.7 % 152 / 186 92.3 % 12 / 13
ratpoints.c
97.2%97.2%
97.2 % 837 / 861 100.0 % 32 / 32
stark.c
93.0%93.0%
93.0 % 1787 / 1921 99.2 % 128 / 129
subfield.c
91.9%91.9%
91.9 % 489 / 532 100.0 % 26 / 26
thue.c
94.8%94.8%
94.8 % 896 / 945 98.4 % 60 / 61

Generated by: LCOV version 1.13