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 16746-c2cb716) Lines: 504 558 90.3 %
Date: 2014-08-31 Functions: 49 52 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 401 562 71.4 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 18624749
addmulii_gen 14101552
addmulii_inplace 495970868
addmulii_lg3 135562258
affrr 590419977
dblexpo 0
dblmantissa 0
dbltor 3099105
div0r 49190
divir 1966732
divrs 2155723
divru 125092856
divsi 0
divsr 6850
divur 1044162
int2n 48352599
int2u 965841
invmod2BIL 13741935
invr 5181163
invr_basecase 5181163
mantissa_real 9922124
modii 510395550
modiiz 328612
mul0r 1489023
mulii 3003861554
mulir 84772410
mulrr 1572354039
mulrrz_3 821690421
mulrrz_3end 827042649
mulrrz_end 787542241
mulrrz_i 1555121013
mulrrz_int 68475621
mulsi 70350656
mulsr 23037506
mulss 7144988
mului 400640790
mulur 106100293
mulur_2 99843763
muluu 436431691
rtodbl 11038071
shifti 345986300
sqri 730796210
sqrr 59682401
sqrs 2948
sqru 135619707
sqrz_i 59110063
truedvmdii 44035354
truedvmdis 43832051
truedvmdsi 3925410
trunc2nr 3312176
usqrt 4784850
vals 184992768

Generated by: LCOV version 1.9