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 - bit.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.12.0 lcov report (development 23008-54b2e2f01) Lines: 372 408 91.2 %
Date: 2018-09-20 05:37:46 Functions: 33 36 91.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
bits_to_int 0
bits_to_u 0
int_set_ulong 0
fromdigits_2k 7
hamming_mat 7
ibittrunc 35
F2v_to_ZV_inplace 42
binaire 77
bittest 91
gbittest 91
ibitor 105
gbitneg 112
ibitxor 147
gbitnegimply 196
gbitor 196
gbitxor 196
ibitnegimply 203
inegate 630
hamming_slice 714
hamming_vecsmall 791
int_set_int 1631
binary_2k 7014
binary_zv 7231
hamming_int 21707
hammingweight 23226
binary_2k_nv 53188
int_get_int 63000
nv_fromdigits_2k 74691
int_get_ulong 92446
int_set_bits 306464
int_get_bits 337333
hammingl 22139678
ibitand 35870632
gbitand 35870695
signs 35871087
checkint2 35871283

Generated by: LCOV version 1.13