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 20296-0a10b35) Lines: 11783 12875 91.5 %
Date: 2017-02-26 05:50:47 Functions: 795 818 97.2 %
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
80.8%80.8%
80.8 % 919 / 1137 100.0 % 38 / 38
part.c
81.6%81.6%
81.6 % 151 / 185 92.3 % 12 / 13
groupid.c
84.8%84.8%
84.8 % 167 / 197 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
91.2%91.2%
91.2 % 1260 / 1382 100.0 % 52 / 52
subfield.c
92.0%92.0%
92.0 % 494 / 537 100.0 % 26 / 26
elldata.c
92.5%92.5%
92.5 % 136 / 147 100.0 % 15 / 15
stark.c
93.1%93.1%
93.1 % 1812 / 1947 99.2 % 126 / 127
galpol.c
93.1%93.1%
93.1 % 27 / 29 100.0 % 2 / 2
algebras.c
93.6%93.6%
93.6 % 2474 / 2643 95.6 % 240 / 251
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
thue.c
94.1%94.1%
94.1 % 883 / 938 98.3 % 59 / 60
galois.c
95.8%95.8%
95.8 % 1640 / 1712 97.2 % 69 / 71
krasner.c
98.2%98.2%
98.2 % 434 / 442 100.0 % 34 / 34
forperm.c
100.0%
100.0 % 31 / 31 100.0 % 4 / 4
forsubset.c
100.0%
100.0 % 61 / 61 100.0 % 9 / 9

Generated by: LCOV version 1.11