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-bordeaux1.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.8.0 lcov report (development 17961-e5c317c) Lines: 512 558 91.8 %
Date: 2015-09-04 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 424 562 75.4 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 29703742
addmulii_gen 18894937
addmulii_inplace 746541878
addmulii_lg3 212595647
affrr 1067234474
dblexpo 0
dblmantissa 0
dbltor 4655690
div0r 88711
divir 2525510
divrs 2626623
divru 278980008
divsi 21
divsr 9217
divur 1287086
int2n 74966722
int2u 3018523
invmod2BIL 17074705
invr 7614771
invr_basecase 7614771
mantissa_real 15628981
modii 1109613384
modiiz 515757
mul0r 1146749
mulii 6251614348
mulir 138961828
mulrr 2364912627
mulrrz_3 1417724608
mulrrz_3end 1431791543
mulrrz_end 982957605
mulrrz_i 2336187823
mulrrz_int 59806746
mulsi 119409241
mulsr 33937313
mulss 7642664
mului 855129985
mulur 255957598
mulur_2 248230020
muluu 1238639950
rtodbl 40298544
shifti 646992404
sqri 1038314161
sqrr 79305003
sqrs 4166
sqru 375525293
sqrz_i 77627945
truedvmdii 69665074
truedvmdis 69052881
truedvmdsi 5495608
trunc2nr 5594534
usqrt 6512018
vals 1268296203

Generated by: LCOV version 1.9