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 21342-bb34613) Lines: 521 566 92.0 %
Date: 2017-11-18 06:21:14 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
dblexpo 0
dblmantissa 0
divsi 21
int2um1 476
divsr 7324
div0r 65001
modiiz 229926
sqrs 314119
mul0r 1175887
divur 1348219
divir 2545745
divrs 3506345
truedvmdsi 6084679
dbltor 6726187
trunc2nr 7181912
int2u 10179565
invr 11299793
invr_basecase 11299793
mantissa_real 16132213
invmod2BIL 18684692
addmulii_gen 20761698
addmulii 27608295
rtodbl 30273286
mulsr 39694869
int2n 42710983
truedvmdis 44941128
truedvmdii 45816619
mulrrz_int 60558978
usqrt 67185381
sqrz_i 84236006
sqrr 90408614
mulss 176920588
mulir 188849359
mulsi 200743075
addmulii_lg3 223297284
mulur_2 484632408
mulur 517355622
divru 545503638
sqru 680465515
mulrrz_3 754005885
mulrrz_3end 769174749
addmulii_inplace 781010770
shifti 839004937
mului 957168632
affrr 1017347270
mulrrz_end 1102658967
modii 1215718603
sqri 1309156726
mulrrz_i 1786130034
mulrr 1812601369
muluu 1812709096
vals 2429304691
mulii 7120483695

Generated by: LCOV version 1.11