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 17240-4611fa9) Lines: 512 558 91.8 %
Date: 2014-12-21 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 407 562 72.4 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 26426730
addmulii_gen 18733692
addmulii_inplace 723335712
addmulii_lg3 200495182
affrr 899641473
dblexpo 0
dblmantissa 0
dbltor 4084256
div0r 88613
divir 2758482
divrs 3787032
divru 159087646
divsi 14
divsr 9217
divur 1524659
int2n 70948777
int2u 1331052
invmod2BIL 15088530
invr 7475333
invr_basecase 7475333
mantissa_real 14898263
modii 771602364
modiiz 474569
mul0r 1146715
mulii 4852549675
mulir 125599020
mulrr 2147776730
mulrrz_3 1335042712
mulrrz_3end 1344430716
mulrrz_end 857494161
mulrrz_i 2117453060
mulrrz_int 54248628
mulsi 111037328
mulsr 33274190
mulss 6929791
mului 644899903
mulur 160640192
mulur_2 153247790
muluu 1020705124
rtodbl 14780850
shifti 469264686
sqri 1101538447
sqrr 85467289
sqrs 4152
sqru 237666333
sqrz_i 83905042
truedvmdii 62700145
truedvmdis 62382780
truedvmdsi 5495048
trunc2nr 5085466
usqrt 6337090
vals 581495327

Generated by: LCOV version 1.9