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 20422-b487f4d) Lines: 521 566 92.0 %
Date: 2017-03-22 05:51:54 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 26814130
addmulii_gen 21841918
addmulii_inplace 713669893
addmulii_lg3 198316180
affrr 941633237
dblexpo 0
dblmantissa 0
dbltor 5707103
div0r 62733
divir 2491555
divrs 3381188
divru 492605451
divsi 21
divsr 7324
divur 1277656
int2n 68744533
int2u 5995724
int2um1 476
invmod2BIL 17103108
invr 11163837
invr_basecase 11163837
mantissa_real 14459828
modii 1168763013
modiiz 225292
mul0r 1159317
mulii 7682975107
mulir 151635749
mulrr 1669823682
mulrrz_3 694953649
mulrrz_3end 705947964
mulrrz_end 1027415465
mulrrz_i 1656444972
mulrrz_int 62565963
mulsi 136164893
mulsr 38338256
mulss 176830653
mului 825044746
mulur 437397635
mulur_2 429085096
muluu 1635599126
rtodbl 28872961
shifti 715663086
sqri 1159288376
sqrr 76658412
sqrs 4159
sqru 576024816
sqrz_i 75682841
truedvmdii 38863402
truedvmdis 38186104
truedvmdsi 6084042
trunc2nr 5581940
usqrt 4124029
vals 2379133997

Generated by: LCOV version 1.11