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-bordeaux1.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 - bit.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 16912-212c0f0) Lines: 302 303 99.7 %
Date: 2014-10-20 Functions: 28 28 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 175 202 86.6 %

Function Name Sort by function name Hit count Sort by hit count
F2v_to_ZV_inplace 35
binaire 70
binary_2k 14
binary_2k_zv 14
binary_zv 63
bits_to_int 42
bits_to_u 161
bittest 91
checkint2 784
gbitand 196
gbitneg 112
gbitnegimply 196
gbitor 196
gbittest 91
gbitxor 196
hamming_int 14
hamming_mat 7
hamming_slice 714
hamming_vecsmall 7
hamming_word 14
hammingweight 749
ibitand 133
ibitnegimply 203
ibitor 105
ibittrunc 35
ibitxor 147
inegate 630
signs 588

Generated by: LCOV version 1.9