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.8.0 lcov report (development 19230-c71492b) Lines: 513 558 91.9 %
Date: 2016-07-30 07:10:28 Functions: 50 52 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 30067840
addmulii_gen 19016662
addmulii_inplace 758176767
addmulii_lg3 218158205
affrr 1232355133
dblexpo 0
dblmantissa 0
dbltor 6636042
div0r 90272
divir 2508892
divrs 3469307
divru 490855359
divsi 21
divsr 7726
divur 1269973
int2n 72516038
int2u 6071539
invmod2BIL 23307306
invr 10831155
invr_basecase 10831155
mantissa_real 16900080
modii 1370027360
modiiz 518858
mul0r 1145748
mulii 7422013034
mulir 143177164
mulrr 2294894253
mulrrz_3 1339634683
mulrrz_3end 1350562408
mulrrz_end 990769291
mulrrz_i 2271335600
mulrrz_int 60373193
mulsi 129060508
mulsr 37037265
mulss 29965476
mului 1058242861
mulur 457528413
mulur_2 449060958
muluu 1651227339
rtodbl 27912042
shifti 818846478
sqri 1104424557
sqrr 70427754
sqrs 4187
sqru 584600271
sqrz_i 69159482
truedvmdii 49910094
truedvmdis 49242107
truedvmdsi 6083888
trunc2nr 5964563
usqrt 3968706
vals 2290117383

Generated by: LCOV version 1.11