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-bordeaux1.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 17932-6fdb233) Lines: 512 558 91.8 %
Date: 2015-08-04 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 424 562 75.4 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 29693900
addmulii_gen 18886581
addmulii_inplace 727007529
addmulii_lg3 204027349
affrr 998912168
dblexpo 0
dblmantissa 0
dbltor 4193285
div0r 88711
divir 2525510
divrs 2626623
divru 209354641
divsi 21
divsr 9217
divur 1287086
int2n 74323853
int2u 1369125
invmod2BIL 17046529
invr 7611848
invr_basecase 7611848
mantissa_real 15199211
modii 1053751232
modiiz 514042
mul0r 1146749
mulii 6033900423
mulir 138890848
mulrr 2364340341
mulrrz_3 1417313330
mulrrz_3end 1431380265
mulrrz_end 982796597
mulrrz_i 2335615537
mulrrz_int 59806746
mulsi 118995403
mulsr 33931069
mulss 7640281
mului 759532438
mulur 186320676
mulur_2 178642803
muluu 1148273338
rtodbl 40219461
shifti 521819332
sqri 1028348179
sqrr 79305003
sqrs 4166
sqru 309264847
sqrz_i 77627945
truedvmdii 68065394
truedvmdis 67453201
truedvmdsi 5495608
trunc2nr 5594534
usqrt 6357333
vals 902937176

Generated by: LCOV version 1.9