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 16962-5a32637) Lines: 504 558 90.3 %
Date: 2014-10-29 Functions: 49 52 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 400 562 71.2 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 25501847
addmulii_gen 17677875
addmulii_inplace 682026591
addmulii_lg3 184677636
affrr 791873683
dblexpo 0
dblmantissa 0
dbltor 3856979
div0r 68719
divir 2730121
divrs 3781233
divru 157418505
divsi 0
divsr 9217
divur 1514974
int2n 68591227
int2u 1287624
invmod2BIL 13828365
invr 7050614
invr_basecase 7050614
mantissa_real 12841731
modii 738255957
modiiz 470909
mul0r 1856971
mulii 4495638824
mulir 109405043
mulrr 1948879201
mulrrz_3 1155717099
mulrrz_3end 1163422285
mulrrz_end 841002357
mulrrz_i 1924381375
mulrrz_int 54137418
mulsi 98938614
mulsr 33360049
mulss 6921388
mului 563007112
mulur 142498214
mulur_2 137765078
muluu 906566367
rtodbl 13611351
shifti 443494549
sqri 1007717902
sqrr 80761355
sqrs 4138
sqru 187039877
sqrz_i 79588490
truedvmdii 60082385
truedvmdis 59819033
truedvmdsi 5495042
trunc2nr 4556079
usqrt 6623695
vals 214731292

Generated by: LCOV version 1.9