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 20916-a74d914) Lines: 639 716 89.2 %
Date: 2017-08-18 06:23:59 Functions: 53 54 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 334986402
addiispec 1721236080
adduispec 1298318438
adduispec_offset 340351819
addumului 840648
affir 109333908
cmpiispec 2311717367
convi 836294
diviiexact 337148525
divis 328867
divis_rem 280888429
diviu_rem 126222623
diviuexact 355611791
diviuuexact 552173
divri 17511437
divri_with_gmp 3306422
divrr 85755414
divrr_with_gmp 33882323
dvmdii 1092504183
equaliispec 130588911
floorr 484887
icopy_ef 19297123
incloop 66675593
incneg 6188
incpos 66656734
int_normalize 149962327
mantissa2nr 23991708
mpz2GEN 323022839
muliispec 2459907877
muliispec_mirror 61099668
muluispec 2528860221
muluui 574381
pari_gmp_free 262023
pari_gmp_realloc 0
pari_kernel_close 876
pari_kernel_init 876
red_montgomery 12086367
remi2n 17386414
resetloop 170732
roundr_up_ip 293138478
setloop 2470229
shiftispec 393887156
sqrispec 875774210
sqrispec_mirror 4785603
sqrtr_abs 22812487
sqrtremi 3450020
subiispec 1765065922
subiuspec 910998178
truncr 1653495
umodiu 892512188
xmpn_copy 1685618
xmpn_mirror 188342690
xmpn_mirrorcopy 278131186
xmpn_zero 60001232

Generated by: LCOV version 1.11