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 19825-b77c7f8) Lines: 513 558 91.9 %
Date: 2016-12-06 05:49:02 Functions: 50 52 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 28872213
addmulii_gen 18320885
addmulii_inplace 754727345
addmulii_lg3 217069640
affrr 944754183
dblexpo 0
dblmantissa 0
dbltor 6217773
div0r 62215
divir 2486749
divrs 3478467
divru 492798356
divsi 21
divsr 7324
divur 1275704
int2n 69059034
int2u 6092318
invmod2BIL 18192843
invr 11342567
invr_basecase 11342567
mantissa_real 14354386
modii 1393872069
modiiz 216507
mul0r 1149814
mulii 7214294372
mulir 152002470
mulrr 1671746070
mulrrz_3 694016243
mulrrz_3end 704025853
mulrrz_end 1018744127
mulrrz_i 1649295368
mulrrz_int 62168737
mulsi 130537434
mulsr 37442445
mulss 29968298
mului 820947985
mulur 444843719
mulur_2 433048000
muluu 1512086947
rtodbl 28991246
shifti 729219056
sqri 1100846797
sqrr 73520740
sqrs 4159
sqru 577204952
sqrz_i 72551998
truedvmdii 47192430
truedvmdis 46491448
truedvmdsi 6083965
trunc2nr 5660063
usqrt 4131742
vals 2234952359

Generated by: LCOV version 1.11