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 16624-25b9976) Lines: 501 555 90.3 %
Date: 2014-06-24 Functions: 49 52 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 474 623 76.1 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 18390041
addmulii_gen 14175134
addmulii_inplace 572196302
addmulii_lg3 156854579
affrr 617890407
dblexpo 0
dblmantissa 0
dbltor 3258509
div0r 49330
divir 1959017
divrs 2162444
divru 123117045
divsi 0
divsr 6855
divur 1037923
int2n 39868107
int2u 964553
invmod2BIL 14200289
invr 5916229
invr_basecase 5916229
mantissa_real 170
modii 513505412
modiiz 328718
mul0r 1503972
mulii 3384350935
mulir 125763672
mulrr 1611829832
mulrrz_3 871849057
mulrrz_3end 877382770
mulrrz_end 785409929
mulrrz_i 1595425888
mulrrz_int 69517693
mulsi 83503425
mulsr 16548177
mulss 7145057
mului 431806485
mulur 148964480
mulur_2 132598802
muluu 514842636
rtodbl 13108540
shifti 340833712
sqri 733315080
sqrr 67547069
sqrs 2979
sqru 139326223
sqrz_i 66980051
truedvmdii 46967908
truedvmdis 46735275
truedvmdsi 3925410
trunc2nr 3377129
usqrt 4794045
vals 186629993

Generated by: LCOV version 1.9