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 - basemath - map.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23353-42c433a02) Lines: 215 219 98.2 %
Date: 2018-12-15 05:41:59 Functions: 27 27 100.0 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
maptomat 7
mapdomain 14
change_leaf 21
mapdomain_shallow 21
treemap_i 70
gtomap 126
treekeys 133
treemap_i_r 497
mapget 581
maptomat_shallow 637
mapisdefined 1813
treesearch 2366
treemat 12600
rotright 21672
treedelete 21882
mapdelete 21896
rotleft 22575
new_leaf 50981
mapput 51002
treeinsert 51002
ismap 75313
treeparent_r 205576
treedelete_r 225029
treeinsert_r 568708
treebalance 729470
fix_height 809319
treeheight 3077578

Generated by: LCOV version 1.13