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 17837-9309d7c) Lines: 512 558 91.8 %
Date: 2015-05-22 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 29693844
addmulii_gen 18886581
addmulii_inplace 727002202
addmulii_lg3 204023905
affrr 998019193
dblexpo 0
dblmantissa 0
dbltor 4182269
div0r 88711
divir 2522143
divrs 2621646
divru 208990862
divsi 21
divsr 9217
divur 1287079
int2n 73605751
int2u 1342359
invmod2BIL 17037184
invr 7596776
invr_basecase 7596776
mantissa_real 15199071
modii 1017279616
modiiz 476431
mul0r 1146749
mulii 5951293483
mulir 138841253
mulrr 2357578135
mulrrz_3 1416917713
mulrrz_3end 1430875540
mulrrz_end 976219137
mulrrz_i 2328832467
mulrrz_int 59073578
mulsi 118676964
mulsr 33877015
mulss 7640267
mului 753756830
mulur 186303931
mulur_2 178573933
muluu 1111389368
rtodbl 40162187
shifti 518762084
sqri 1025458531
sqrr 79004677
sqrs 4166
sqru 306272938
sqrz_i 77328830
truedvmdii 68065420
truedvmdis 67452422
truedvmdsi 5495608
trunc2nr 5477368
usqrt 6356204
vals 918031752

Generated by: LCOV version 1.9