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 - bit.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20459-9710128) Lines: 372 408 91.2 %
Date: 2017-04-28 05:33:48 Functions: 33 36 91.7 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
F2v_to_ZV_inplace 36
binaire 66
binary_2k 17988
binary_2k_nv 139230
binary_zv 6198
bits_to_int 0
bits_to_u 0
bittest 78
checkint2 30728478
fromdigits_2k 6
gbitand 30727974
gbitneg 96
gbitnegimply 168
gbitor 168
gbittest 78
gbitxor 168
hamming_int 17214
hamming_mat 6
hamming_slice 612
hamming_vecsmall 54
hammingl 18904050
hammingweight 17892
ibitand 30727920
ibitnegimply 174
ibitor 90
ibittrunc 30
ibitxor 126
inegate 540
int_get_bits 1536540
int_get_int 98148
int_get_ulong 118002
int_set_bits 1248000
int_set_int 1398
int_set_ulong 0
nv_fromdigits_2k 123408
signs 30728310

Generated by: LCOV version 1.11