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.8.0 lcov report (development 19378-5335519) Lines: 513 558 91.9 %
Date: 2016-08-31 06:11:49 Functions: 50 52 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 29766418
addmulii_gen 19923112
addmulii_inplace 756918796
addmulii_lg3 230774040
affrr 1243961655
dblexpo 0
dblmantissa 0
dbltor 6613923
div0r 90594
divir 2509705
divrs 3474524
divru 493405064
divsi 21
divsr 7726
divur 1269830
int2n 72661835
int2u 6013737
invmod2BIL 23537044
invr 11078453
invr_basecase 11078453
mantissa_real 17161359
modii 1428248189
modiiz 516176
mul0r 1144651
mulii 7497117279
mulir 149092513
mulrr 2309348967
mulrrz_3 1347321611
mulrrz_3end 1358256815
mulrrz_end 998679563
mulrrz_i 2284888128
mulrrz_int 61070462
mulsi 132376876
mulsr 37487910
mulss 29964567
mului 1098176798
mulur 463445581
mulur_2 454019624
muluu 1675234975
rtodbl 28635482
shifti 809152216
sqri 1112963672
sqrr 72485076
sqrs 4159
sqru 591123916
sqrz_i 71206548
truedvmdii 51217679
truedvmdis 50567978
truedvmdsi 6083888
trunc2nr 5981617
usqrt 4082316
vals 2288147424

Generated by: LCOV version 1.11