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 17707-04f73e4) Lines: 512 558 91.8 %
Date: 2015-03-30 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 422 562 75.1 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 29698166
addmulii_gen 18885710
addmulii_inplace 726863945
addmulii_lg3 204015876
affrr 965905628
dblexpo 0
dblmantissa 0
dbltor 4154771
div0r 88669
divir 2530161
divrs 2487223
divru 182265569
divsi 21
divsr 9217
divur 1296609
int2n 73037340
int2u 1338641
invmod2BIL 15495031
invr 7329930
invr_basecase 7329930
mantissa_real 15171435
modii 1017243995
modiiz 476431
mul0r 1146794
mulii 6154465306
mulir 137023128
mulrr 2255366552
mulrrz_3 1399345711
mulrrz_3end 1413137873
mulrrz_end 888652038
mulrrz_i 2226049666
mulrrz_int 49882146
mulsi 116297304
mulsr 33194196
mulss 7548237
mului 753866944
mulur 184740499
mulur_2 176834896
muluu 1104847457
rtodbl 38947094
shifti 492544612
sqri 1042619180
sqrr 76520300
sqrs 4166
sqru 305332109
sqrz_i 74840747
truedvmdii 68065099
truedvmdis 67452076
truedvmdsi 5495048
trunc2nr 5253908
usqrt 6355709
vals 708535554

Generated by: LCOV version 1.9