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 19611-73a567d) Lines: 11615 12735 91.2 %
Date: 2016-09-27 05:54:40 Functions: 775 798 97.1 %
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 % 720 / 837 91.1 % 51 / 56
aprcl.c
87.7%87.7%
87.7 % 511 / 583 97.8 % 45 / 46
genus2red.c
90.7%90.7%
90.7 % 1261 / 1390 100.0 % 52 / 52
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
galpol.c
92.9%92.9%
92.9 % 26 / 28 100.0 % 2 / 2
algebras.c
92.9%92.9%
92.9 % 2405 / 2590 95.5 % 234 / 245
stark.c
92.9%92.9%
92.9 % 1807 / 1945 99.2 % 125 / 126
thue.c
93.9%93.9%
93.9 % 876 / 933 98.3 % 58 / 59
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
galois.c
95.7%95.7%
95.7 % 1640 / 1714 97.2 % 69 / 71
krasner.c
98.2%98.2%
98.2 % 438 / 446 100.0 % 35 / 35

Generated by: LCOV version 1.11