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 22307-7f6745a) Lines: 524 569 92.1 %
Date: 2018-04-22 06:16:17 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 63601
modiiz 244845
sqrs 317213
mul0r 1186539
divur 1318451
divir 2509066
divrs 3900230
truedvmdsi 6167132
dbltor 6918386
trunc2nr 8171092
int2u 10381290
invr 12275743
invr_basecase 12275743
mantissa_real 16249175
invmod2BIL 17435003
addmulii_gen 21626488
rtodbl 32197344
addmulii 41194945
int2n 44421101
truedvmdis 45755117
truedvmdii 46873769
mulsr 46921858
usqrt 63493908
mulrrz_int 66568846
sqrz_i 88159596
sqrr 95363368
mulir 181486126
mulss 185040521
mulsi 201863102
addmulii_lg3 228310433
mulur_2 505196088
mulur 524136862
divru 562519017
sqru 660083644
addmulii_inplace 723259242
mulrrz_3 751005685
mulrrz_3end 767299370
shifti 853872432
mului 859002273
affrr 1046307106
mulrrz_end 1098622547
modii 1215580257
sqri 1308375585
mulrrz_i 1776280639
muluu 1798013759
mulrr 1806966038
vals 2435503353
mulii 7230781756

Generated by: LCOV version 1.11