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.1 lcov report (development 22726-9e20c6a88) Lines: 644 713 90.3 %
Date: 2018-06-23 05:36:28 Functions: 53 54 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
pari_gmp_realloc 0
pari_kernel_init 892
pari_kernel_close 944
incneg 6272
resetloop 170652
pari_gmp_free 278364
divis 424769
convi 534924
diviuuexact 580213
muluui 602421
floorr 737104
addumului 931443
xmpn_copy 1836300
truncr 1944015
setloop 2900318
sqrtremi 3602002
divri_with_gmp 3617777
sqrispec_mirror 6640479
red_montgomery 10765643
muliispec_mirror 11576603
icopy_ef 15954398
remi2n 16872228
mpz2GEN 18775506
divri 20352279
sqrtr_abs 26297846
mantissa2nr 29344007
incpos 31752916
incloop 32084782
GEN2mpz 37551012
divis_rem 44885872
divrr_with_gmp 48280413
xmpn_zero 78196036
int_normalize 90162645
divrr 106304323
equaliispec 119297342
affir 139069707
absdiviu_rem 141699723
xmpn_mirror 168541233
xmpn_mirrorcopy 232489660
adduispec_offset 250215262
diviiexact 306319115
diviuexact 313297986
roundr_up_ip 326758500
shiftispec 391002834
sqrispec 752972122
subiuspec 832406632
dvmdii 840455732
umodiu 969567113
adduispec 1182658204
subiispec 1541676452
addiispec 1622065430
cmpiispec 1932554066
muliispec 2222980592
muluispec 2380754132

Generated by: LCOV version 1.13