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.16.2 lcov report (development 29115-f22e516b23) Lines: 540 572 94.4 %
Date: 2024-04-19 08:07:09 Functions: 52 53 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 216616245
addmulii_gen 128327008
addmulii_inplace 1947116889
addmulii_lg3 640380118
affrr 1316902276
dblexpo 23630524
dblmantissa 0
dbltor 12819378
div0r 186004
divir 3450254
divrs 9311781
divru 1045497436
divsi 133
divsr 729
divur 2430957
int2n 100719893
int2u 22668824
int2um1 7504
invmod2BIL 60017329
invr 60012927
invr_basecase 60012560
mantissa_real 53394316
modii 2502501807
modiiz 777267
mul0r 950253
mulii 17404774284
mulir 989928479
mulrr 3874882888
mulrrz_3 642115150
mulrrz_3end 758711394
mulrrz_end 3455815265
mulrrz_i 3609229095
mulrrz_int 52342943
mulsi 637193401
mulsr 116207559
mulss 196170699
mului 922892618
mulur 931284353
mulur_2 694561302
muluu 4034090150
rtodbl 284531008
shifti 2162915550
sqri 1800921146
sqrr 570528306
sqrs 1488553
sqru 587913398
sqrz_i 540349830
truedvmdii 129468132
truedvmdis 126237800
truedvmdsi 6197775
trunc2nr 60481813
usqrt 218009505
vals 2189764629

Generated by: LCOV version 1.14