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 - kernel/gmp - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17853-438d50d) Lines: 641 716 89.5 %
Date: 2015-05-29 Functions: 53 54 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 424 533 79.5 %

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 128192837
addiispec 1273767300
adduispec 1070399061
adduispec_offset 318949480
addumului 1097508
affir 132202863
cmpiispec 1844598251
convi 466941
diviiexact 354697301
divis 262586
divis_rem 40229065
diviu_rem 126752182
diviuexact 345241027
diviuuexact 220592
divri 15791502
divri_with_gmp 3559313
divrr 94653456
divrr_with_gmp 19842726
dvmdii 690519866
equaliispec 28884530
floorr 488569
icopy_ef 17989652
incloop 21477492
incneg 6184
incpos 21479159
int_normalize 136915830
mantissa2nr 20948951
mpz2GEN 116650491
muliispec 1298846144
muliispec_mirror 60416109
muluispec 1450865944
muluui 242800
pari_gmp_free 3014
pari_gmp_realloc 0
pari_kernel_close 1240
pari_kernel_init 1748
red_montgomery 6129777
remi2n 10070453
resetloop 145608
roundr_up_ip 123122601
setloop 1514250
shiftispec 238108864
sqrispec 590437612
sqrispec_mirror 4042086
sqrtr_abs 18417121
sqrtremi 1403708
subiispec 1611590756
subiuspec 969649939
truncr 482551
umodiu 591523185
xmpn_copy 1229825
xmpn_mirror 205685748
xmpn_mirrorcopy 228047778
xmpn_zero 41819160

Generated by: LCOV version 1.9