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 19350-bd5f220) Lines: 11612 12734 91.2 %
Date: 2016-08-24 06:11:24 Functions: 774 798 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
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
part.c
81.4%81.4%
81.4 % 149 / 183 92.3 % 12 / 13
algebras.c
92.9%92.9%
92.9 % 2406 / 2590 95.5 % 233 / 244
galois.c
95.7%95.7%
95.7 % 1640 / 1714 97.2 % 69 / 71
aprcl.c
87.7%87.7%
87.7 % 511 / 583 97.8 % 45 / 46
thue.c
93.9%93.9%
93.9 % 875 / 932 98.3 % 58 / 59
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
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
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
krasner.c
98.4%98.4%
98.4 % 441 / 448 100.0 % 35 / 35
mpqs.c
81.2%81.2%
81.2 % 923 / 1137 100.0 % 38 / 38
genus2red.c
90.7%90.7%
90.7 % 1261 / 1390 100.0 % 52 / 52

Generated by: LCOV version 1.11