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 21501-1931cb9) Lines: 521 566 92.0 %
Date: 2017-12-16 06:20:36 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 28387042
addmulii_gen 20828345
addmulii_inplace 791364910
addmulii_lg3 225083066
affrr 1033228292
dblexpo 0
dblmantissa 0
dbltor 6800996
div0r 65001
divir 2541931
divrs 3833689
divru 559977443
divsi 21
divsr 7324
divur 1344418
int2n 42655348
int2u 10312823
int2um1 476
invmod2BIL 18896914
invr 11616622
invr_basecase 11616622
mantissa_real 16204425
modii 1144234097
modiiz 230129
mul0r 1175887
mulii 6999210664
mulir 190166518
mulrr 1822938644
mulrrz_3 755108441
mulrrz_3end 770253039
mulrrz_end 1112150217
mulrrz_i 1796477970
mulrrz_int 60853963
mulsi 208953106
mulsr 40099393
mulss 185041534
mului 952283385
mulur 530143713
mulur_2 496936125
muluu 1846220513
rtodbl 31042273
shifti 826752065
sqri 1257828736
sqrr 90505443
sqrs 319509
sqru 689601513
sqrz_i 84457593
truedvmdii 141790226
truedvmdis 140907228
truedvmdsi 6084679
trunc2nr 7183437
usqrt 74876190
vals 2403022294

Generated by: LCOV version 1.11