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 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 - kernel/none - gcdll.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.1 lcov report (development 22708-0f0e6fe44) Lines: 354 357 99.2 %
Date: 2018-06-18 05:36:21 Functions: 15 16 93.8 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
clcm 0
cbezout 238434
rgcduu 737314
lcmuu 2156006
ulcm 2179661
Fl_invgen 3731943
cgcd 5574640
lgcdii 7502106
gcduodd 138694715
ugcd 160718451
igcduu 166251356
xxgcduu 169260232
mygcduodd 176584657
Fl_inv 179847526
Fl_invsafe 196681601
xgcduu 207740441

Generated by: LCOV version 1.13