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 18894-f1ef88e) Lines: 11509 12565 91.6 %
Date: 2016-05-03 Functions: 770 794 97.0 %
Legend: Rating: low: < 75 % medium: >= 75 % high: >= 90 % Branches: 6693 8553 78.3 %

Filename Sort by name Line Coverage Sort by line coverage Functions Sort by function coverage Branches Sort by branch coverage
algebras.c
93.6%93.6%
93.6 % 2435 / 2601 95.5 % 233 / 244 89.3 % 1405 / 1574
aprcl.c
88.5%88.5%
88.5 % 516 / 583 97.8 % 45 / 46 62.9 % 297 / 472
elldata.c
94.6%94.6%
94.6 % 139 / 147 100.0 % 15 / 15 71.8 % 107 / 149
ellfromeqn.c
94.0%94.0%
94.0 % 63 / 67 100.0 % 6 / 6 61.5 % 32 / 52
galois.c
96.1%96.1%
96.1 % 1458 / 1517 96.9 % 63 / 65 85.8 % 1271 / 1481
galpol.c
92.9%92.9%
92.9 % 26 / 28 100.0 % 2 / 2 68.0 % 17 / 25
genus2red.c
91.1%91.1%
91.1 % 1281 / 1406 100.0 % 53 / 53 74.8 % 568 / 759
groupid.c
85.4%85.4%
85.4 % 169 / 198 87.5 % 7 / 8 67.1 % 163 / 243
krasner.c
98.4%98.4%
98.4 % 441 / 448 100.0 % 35 / 35 84.6 % 198 / 234
kummer.c
86.5%86.5%
86.5 % 728 / 842 91.2 % 52 / 57 65.9 % 355 / 539
mpqs.c
81.3%81.3%
81.3 % 923 / 1135 100.0 % 38 / 38 64.3 % 455 / 708
part.c
81.4%81.4%
81.4 % 149 / 183 92.3 % 12 / 13 65.8 % 98 / 149
stark.c
93.0%93.0%
93.0 % 1806 / 1942 98.4 % 125 / 127 78.0 % 915 / 1173
subfield.c
92.4%92.4%
92.4 % 496 / 537 100.0 % 26 / 26 81.5 % 290 / 356
thue.c
94.4%94.4%
94.4 % 879 / 931 98.3 % 58 / 59 81.7 % 522 / 639

Generated by: LCOV version 1.9