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 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.8.0 lcov report (development 19214-1621e44) Lines: 11446 12555 91.2 %
Date: 2016-07-26 07:10:39 Functions: 769 793 97.0 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
mpqs.c
81.2%81.2%
81.2 % 923 / 1137 100.0 % 38 / 38
part.c
81.4%81.4%
81.4 % 149 / 183 92.3 % 12 / 13
groupid.c
84.3%84.3%
84.3 % 167 / 198 87.5 % 7 / 8
kummer.c
86.0%86.0%
86.0 % 721 / 838 91.1 % 51 / 56
aprcl.c
87.7%87.7%
87.7 % 511 / 583 97.8 % 45 / 46
genus2red.c
90.8%90.8%
90.8 % 1278 / 1407 100.0 % 53 / 53
elldata.c
91.8%91.8%
91.8 % 135 / 147 100.0 % 15 / 15
subfield.c
92.0%92.0%
92.0 % 494 / 537 100.0 % 26 / 26
stark.c
92.7%92.7%
92.7 % 1800 / 1942 98.4 % 125 / 127
galpol.c
92.9%92.9%
92.9 % 26 / 28 100.0 % 2 / 2
algebras.c
92.9%92.9%
92.9 % 2407 / 2591 95.5 % 233 / 244
thue.c
93.9%93.9%
93.9 % 875 / 932 98.3 % 58 / 59
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
galois.c
96.0%96.0%
96.0 % 1456 / 1517 96.9 % 63 / 65
krasner.c
98.4%98.4%
98.4 % 441 / 448 100.0 % 35 / 35

Generated by: LCOV version 1.11