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 - basemath - map.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21355-49ee849) Lines: 260 288 90.3 %
Date: 2017-11-25 06:21:19 Functions: 30 33 90.9 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
mapdomain_shallow 0
treekeys_i 0
treekeys_i_r 0
maptomat 7
treemat 7
mapdomain 14
treekeys 14
change_leaf 21
treemap_i 56
gtomap 98
treekeys_r 98
treemap_i_r 469
mapget 567
maptomat_shallow 595
treemat_i 595
mapisdefined 1799
treemat_i_r 2317
treesearch 2366
treemat_r 9660
treeparent 20440
rotright 21672
mapdelete 21882
treedelete 21882
rotleft 22575
new_leaf 50981
mapput 51002
treeinsert 51002
treeparent_r 205576
treedelete_r 225029
treeinsert_r 568708
treebalance 729470
fix_height 809319
treeheight 3077578

Generated by: LCOV version 1.11