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.10.0 lcov report (development 19825-b77c7f8) Lines: 11618 12736 91.2 %
Date: 2016-12-05 05:49:04 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
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
part.c
81.4%81.4%
81.4 % 149 / 183 92.3 % 12 / 13
algebras.c
92.9%92.9%
92.9 % 2405 / 2590 95.5 % 234 / 245
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 % 876 / 933 98.3 % 58 / 59
stark.c
93.0%93.0%
93.0 % 1813 / 1949 99.2 % 126 / 127
galpol.c
93.1%93.1%
93.1 % 27 / 29 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.2%98.2%
98.2 % 434 / 442 100.0 % 34 / 34
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