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 18590-b5f7c1c) Lines: 514 558 92.1 %
Date: 2016-02-09 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 429 562 76.3 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 30261248
addmulii_gen 19207498
addmulii_inplace 749197846
addmulii_lg3 212090117
affrr 1107008810
dblexpo 0
dblmantissa 0
dbltor 4956397
div0r 90097
divir 2502611
divrs 3109621
divru 308248992
divsi 21
divsr 7677
divur 1263539
int2n 67930526
int2u 3246703
invmod2BIL 21247207
invr 10482822
invr_basecase 10482822
mantissa_real 15842042
modii 1226606019
modiiz 516392
mul0r 1145132
mulii 6848987833
mulir 153267603
mulrr 2447882421
mulrrz_3 1429500498
mulrrz_3end 1444252323
mulrrz_end 1054246143
mulrrz_i 2418914997
mulrrz_int 60269769
mulsi 123425657
mulsr 36201969
mulss 7727229
mului 885144278
mulur 269988838
mulur_2 260860057
muluu 1269260179
rtodbl 53076743
shifti 667624963
sqri 1050632046
sqrr 79930386
sqrs 4180
sqru 406097906
sqrz_i 78661553
truedvmdii 69896962
truedvmdis 69284239
truedvmdsi 5498142
trunc2nr 5911986
usqrt 7157265
vals 1293097638

Generated by: LCOV version 1.9