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.8.0 lcov report (development 19619-c9e92b8) Lines: 639 716 89.2 %
Date: 2016-09-29 05:54:10 Functions: 53 54 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 249542604
addiispec 1457740411
adduispec 1120134662
adduispec_offset 326813610
addumului 759769
affir 113456245
cmpiispec 1838967768
convi 484906
diviiexact 332061803
divis 470574
divis_rem 32975372
diviu_rem 126199098
diviuexact 324912039
diviuuexact 512041
divri 17745302
divri_with_gmp 3593803
divrr 92086871
divrr_with_gmp 31722333
dvmdii 840887194
equaliispec 56670371
floorr 433538
icopy_ef 20155150
incloop 32705158
incneg 6184
incpos 32692020
int_normalize 151822343
mantissa2nr 22377246
mpz2GEN 231935626
muliispec 1889803626
muliispec_mirror 62942294
muluispec 2011331532
muluui 534249
pari_gmp_free 212651
pari_gmp_realloc 0
pari_kernel_close 1284
pari_kernel_init 776
red_montgomery 6645213
remi2n 10257687
resetloop 156748
roundr_up_ip 271664463
setloop 2412748
shiftispec 346481927
sqrispec 650785699
sqrispec_mirror 4842418
sqrtr_abs 21653410
sqrtremi 2662580
subiispec 1487650630
subiuspec 844528355
truncr 1486150
umodiu 781876255
xmpn_copy 1271626
xmpn_mirror 192150205
xmpn_mirrorcopy 274395287
xmpn_zero 56969546

Generated by: LCOV version 1.11