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 20277-2bd9113) Lines: 521 566 92.0 %
Date: 2017-02-21 05:49:51 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 28877560
addmulii_gen 18331992
addmulii_inplace 757003543
addmulii_lg3 218172079
affrr 947579008
dblexpo 0
dblmantissa 0
dbltor 6314676
div0r 62600
divir 2491337
divrs 3383870
divru 493246956
divsi 21
divsr 7324
divur 1277459
int2n 69067698
int2u 5993246
int2um1 476
invmod2BIL 16818878
invr 11225386
invr_basecase 11225386
mantissa_real 14676718
modii 1141581201
modiiz 225124
mul0r 1159317
mulii 7755466493
mulir 151861652
mulrr 1676703773
mulrrz_3 699438190
mulrrz_3end 710210500
mulrrz_end 1027576314
mulrrz_i 1661261753
mulrrz_int 62659789
mulsi 129133658
mulsr 38403248
mulss 176830721
mului 818128084
mulur 438838847
mulur_2 429857935
muluu 1667623450
rtodbl 28917117
shifti 711952763
sqri 1171483336
sqrr 76263185
sqrs 4152
sqru 572704691
sqrz_i 75266040
truedvmdii 47425948
truedvmdis 46733138
truedvmdsi 6084042
trunc2nr 5586559
usqrt 4136232
vals 2086009579

Generated by: LCOV version 1.11