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 to exceed 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.12.0 lcov report (development 23171-a5c0ed393) Lines: 524 569 92.1 %
Date: 2018-10-20 05:38:07 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 483
divsr 7394
div0r 64609
modiiz 252108
sqrs 359878
mul0r 1188786
divur 1406341
divir 2604449
truedvmdsi 6168049
trunc2nr 8248828
divrs 8590008
dbltor 10595681
mulrrz_int 11056347
int2u 11391070
invr 19346924
invr_basecase 19346924
mantissa_real 20033130
invmod2BIL 22768107
addmulii_gen 32324975
addmulii 46033046
int2n 48686643
rtodbl 50175653
truedvmdis 54209838
truedvmdii 56426762
mulsr 58743606
usqrt 64992823
sqrz_i 96766232
sqrr 104853450
mulss 185060560
mulsi 215374279
mulir 252308844
addmulii_lg3 263795889
mulur_2 563793376
mulur 584004941
divru 618907828
sqru 693856420
mulrrz_3 799434458
mulrrz_3end 817450145
shifti 891962531
mului 918808393
addmulii_inplace 1122375049
affrr 1134510741
modii 1162599292
mulrrz_end 1296518092
sqri 1306701637
muluu 1903477778
mulrrz_i 2012239334
mulrr 2038100271
vals 2408149832
mulii 7766165275

Generated by: LCOV version 1.13