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 - kernel/gmp - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 21196-f12677d) Lines: 639 716 89.2 %
Date: 2017-10-22 06:23:24 Functions: 53 54 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 258335788
addiispec 1645979351
adduispec 1154013614
adduispec_offset 250029836
addumului 840804
affir 112615031
cmpiispec 2098656864
convi 839357
diviiexact 247628321
divis 329195
divis_rem 49684983
diviu_rem 126578964
diviuexact 265048120
diviuuexact 528141
divri 17546821
divri_with_gmp 3309910
divrr 87463188
divrr_with_gmp 34190017
dvmdii 979719329
equaliispec 123565523
floorr 469044
icopy_ef 14533822
incloop 66417837
incneg 6188
incpos 66405097
int_normalize 85958135
mantissa2nr 24525928
mpz2GEN 246601985
muliispec 2289933640
muliispec_mirror 61526020
muluispec 2348682510
muluui 550349
pari_gmp_free 296916
pari_gmp_realloc 0
pari_kernel_close 900
pari_kernel_init 900
red_montgomery 11970951
remi2n 17781044
resetloop 170732
roundr_up_ip 293159052
setloop 2495927
shiftispec 391121872
sqrispec 823991045
sqrispec_mirror 5305762
sqrtr_abs 22916467
sqrtremi 3449202
subiispec 1671790878
subiuspec 828130732
truncr 1614078
umodiu 929154685
xmpn_copy 1678437
xmpn_mirror 192575882
xmpn_mirrorcopy 281046999
xmpn_zero 60416394

Generated by: LCOV version 1.11