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 22303-eb3e11d) Lines: 11819 12751 92.7 %
Date: 2018-04-20 06:16:30 Functions: 759 776 97.8 %
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.8%84.8%
84.8 % 167 / 197 87.5 % 7 / 8
part.c
81.7%81.7%
81.7 % 152 / 186 92.3 % 12 / 13
algebras.c
94.2%94.2%
94.2 % 2910 / 3090 96.1 % 272 / 283
galois.c
95.9%95.9%
95.9 % 1639 / 1709 97.2 % 69 / 71
thue.c
94.2%94.2%
94.2 % 897 / 952 98.4 % 60 / 61
stark.c
93.1%93.1%
93.1 % 1808 / 1943 99.2 % 125 / 126
galpol.c
93.1%93.1%
93.1 % 27 / 29 100.0 % 2 / 2
forperm.c
100.0%
100.0 % 33 / 33 100.0 % 4 / 4
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
forsubset.c
100.0%
100.0 % 52 / 52 100.0 % 7 / 7
elldata.c
92.5%92.5%
92.5 % 136 / 147 100.0 % 15 / 15
subfield.c
92.0%92.0%
92.0 % 494 / 537 100.0 % 26 / 26
ratpoints.c
97.3%97.3%
97.3 % 823 / 846 100.0 % 31 / 31
krasner.c
98.2%98.2%
98.2 % 439 / 447 100.0 % 34 / 34
mpqs.c
80.9%80.9%
80.9 % 918 / 1135 100.0 % 38 / 38
genus2red.c
91.3%91.3%
91.3 % 1261 / 1381 100.0 % 51 / 51

Generated by: LCOV version 1.11