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 to exceed 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.12.1 lcov report (development 25166-03e642fe2b) Lines: 12177 12921 94.2 %
Date: 2020-04-04 06:01:39 Functions: 779 791 98.5 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage
algebras.c
96.5%96.5%
96.5 % 3011 / 3119 98.2 % 270 / 275
elldata.c
92.5%92.5%
92.5 % 135 / 146 100.0 % 15 / 15
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6
forperm.c
100.0%
100.0 % 37 / 37 100.0 % 4 / 4
forsubset.c
100.0%
100.0 % 53 / 53 100.0 % 7 / 7
galois.c
96.1%96.1%
96.1 % 1772 / 1843 97.2 % 69 / 71
galpol.c
82.1%82.1%
82.1 % 46 / 56 100.0 % 4 / 4
genus2red.c
91.9%91.9%
91.9 % 1310 / 1426 100.0 % 54 / 54
groupid.c
85.7%85.7%
85.7 % 192 / 224 87.5 % 7 / 8
krasner.c
98.0%98.0%
98.0 % 440 / 449 100.0 % 34 / 34
mpqs.c
82.7%82.7%
82.7 % 541 / 654 96.7 % 29 / 30
part.c
81.5%81.5%
81.5 % 154 / 189 92.3 % 12 / 13
ratpoints.c
97.2%97.2%
97.2 % 838 / 862 100.0 % 32 / 32
stark.c
92.9%92.9%
92.9 % 1772 / 1907 99.2 % 129 / 130
subfield.c
97.0%97.0%
97.0 % 914 / 942 100.0 % 47 / 47
thue.c
94.9%94.9%
94.9 % 899 / 947 98.4 % 60 / 61

Generated by: LCOV version 1.13