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 20916-a74d914) Lines: 521 566 92.0 %
Date: 2017-08-20 06:25:02 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 29382810
addmulii_gen 28618240
addmulii_inplace 1763246008
addmulii_lg3 375308753
affrr 1003430246
dblexpo 0
dblmantissa 0
dbltor 6618721
div0r 65008
divir 2500461
divrs 3507817
divru 537933151
divsi 21
divsr 7324
divur 1302532
int2n 73210783
int2u 9999087
int2um1 476
invmod2BIL 20790598
invr 11380591
invr_basecase 11380591
mantissa_real 15127509
modii 1344290182
modiiz 229877
mul0r 1168586
mulii 8569991688
mulir 157349679
mulrr 1687148481
mulrrz_3 718616656
mulrrz_3end 731622024
mulrrz_end 1018242194
mulrrz_i 1671153091
mulrrz_int 60143101
mulsi 209617565
mulsr 39239884
mulss 177089289
mului 902324709
mulur 485702345
mulur_2 475046232
muluu 2002980379
rtodbl 29749924
shifti 831883805
sqri 1457010620
sqrr 78103322
sqrs 888000
sqru 635933971
sqrz_i 77289965
truedvmdii 452315100
truedvmdis 450845369
truedvmdsi 6084595
trunc2nr 7050626
usqrt 73667551
vals 2595743009

Generated by: LCOV version 1.11