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.10.0 lcov report (development 20068-a012b06) Lines: 513 558 91.9 %
Date: 2017-01-16 05:49:55 Functions: 50 52 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 28915007
addmulii_gen 18323897
addmulii_inplace 756604184
addmulii_lg3 218093402
affrr 950421841
dblexpo 0
dblmantissa 0
dbltor 6310277
div0r 62446
divir 2490270
divrs 3428582
divru 496885681
divsi 21
divsr 7324
divur 1276764
int2n 69369700
int2u 5978083
invmod2BIL 18085921
invr 11190305
invr_basecase 11190305
mantissa_real 14696171
modii 1136231799
modiiz 217221
mul0r 1165511
mulii 7682570999
mulir 153094802
mulrr 1679641739
mulrrz_3 698055579
mulrrz_3end 708754496
mulrrz_end 1031669661
mulrrz_i 1664951890
mulrrz_int 63212955
mulsi 130061962
mulsr 37462267
mulss 176831211
mului 822364982
mulur 438482321
mulur_2 427531386
muluu 1651821776
rtodbl 28972195
shifti 726779444
sqri 1171015085
sqrr 75508331
sqrs 4159
sqru 576782297
sqrz_i 74511462
truedvmdii 47484847
truedvmdis 46783955
truedvmdsi 6084042
trunc2nr 5333898
usqrt 4122962
vals 2245744085

Generated by: LCOV version 1.11