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/none - mp_indep.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 20777-d2a9243) Lines: 521 566 92.0 %
Date: 2017-06-25 05:59:24 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 27111567
addmulii_gen 22104670
addmulii_inplace 716494419
addmulii_lg3 199082246
affrr 962852262
dblexpo 0
dblmantissa 0
dbltor 6305146
div0r 63608
divir 2496317
divrs 3491659
divru 499225575
divsi 21
divsr 7324
divur 1296446
int2n 70100413
int2u 9637355
int2um1 476
invmod2BIL 17789973
invr 11302358
invr_basecase 11302358
mantissa_real 14863935
modii 1283369400
modiiz 229653
mul0r 1168298
mulii 8146104892
mulir 156438265
mulrr 1680700016
mulrrz_3 715825625
mulrrz_3end 728238343
mulrrz_end 1014378646
mulrrz_i 1664803753
mulrrz_int 59779556
mulsi 209981164
mulsr 38929332
mulss 177094817
mului 849663834
mulur 446443323
mulur_2 435822834
muluu 1792173334
rtodbl 29414336
shifti 760692551
sqri 1246503319
sqrr 77380826
sqrs 898402
sqru 589159214
sqrz_i 76572441
truedvmdii 38712593
truedvmdis 38023790
truedvmdsi 6084588
trunc2nr 6634004
usqrt 13670691
vals 2628269986

Generated by: LCOV version 1.11