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.11.0 lcov report (development 22860-5579deb0b) Lines: 524 569 92.1 %
Date: 2018-07-18 05:36:42 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
dblexpo 0
dblmantissa 0
divsi 21
int2um1 483
divsr 7324
div0r 64609
modiiz 245097
sqrs 318438
mul0r 1187778
divur 1320645
divir 2511518
divrs 4119193
truedvmdsi 6168028
trunc2nr 8191313
mulrrz_int 8700566
int2u 10390048
dbltor 10592769
invr 18589456
invr_basecase 18589456
mantissa_real 19806124
invmod2BIL 22741491
addmulii_gen 32276950
addmulii 46031942
int2n 47259409
rtodbl 49409339
truedvmdis 50537568
truedvmdii 52745998
mulsr 54792080
usqrt 63731428
sqrz_i 92819299
sqrr 100865155
mulss 185057901
mulsi 207407560
mulir 222646697
addmulii_lg3 263743112
mulur_2 538434353
mulur 560154037
divru 600713475
sqru 684867238
mulrrz_3 771721398
mulrrz_3end 789312973
shifti 860909311
mului 883422344
affrr 1118065690
addmulii_inplace 1122198793
modii 1144527180
mulrrz_end 1236209133
sqri 1295136134
muluu 1865494047
mulrrz_i 1927939113
mulrr 1958412126
vals 2474915251
mulii 7702622858

Generated by: LCOV version 1.13