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 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 - language - parsec.h (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23339-b1c33c51a) Lines: 100 103 97.1 %
Date: 2018-12-11 05:41:34 Functions: 17 17 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
compile_varerr 21
compile_err 42
pari_error 84
newopcall3 147
addcurrexpr 567
countarg 658
newfunc 2860
pari_compile_str 96530
parsestate_restore 105664
pari_close_parser 115843
pari_init_parser 118478
parsestate_reset 119465
parsestate_save 193963
newconst 2326599
newopcall 2657893
newintnode 7684180
newnode 25642643

Generated by: LCOV version 1.13