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 16791-0d1274a) Lines: 504 558 90.3 %
Date: 2014-09-16 Functions: 49 52 94.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 401 562 71.4 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 18227680
addmulii_gen 14102690
addmulii_inplace 489888753
addmulii_lg3 131576991
affrr 579505261
dblexpo 0
dblmantissa 0
dbltor 2769561
div0r 49190
divir 1966757
divrs 2119491
divru 118050924
divsi 0
divsr 6790
divur 1044242
int2n 48042164
int2u 927040
invmod2BIL 13744159
invr 4986676
invr_basecase 4986676
mantissa_real 9227740
modii 511476780
modiiz 328632
mul0r 1328611
mulii 2993080445
mulir 83470397
mulrr 1413093827
mulrrz_3 819405762
mulrrz_3end 824737335
mulrrz_end 630613370
mulrrz_i 1396171934
mulrrz_int 54219729
mulsi 70289003
mulsr 23941997
mulss 7137717
mului 397871485
mulur 104732106
mulur_2 100366574
muluu 432209531
rtodbl 11112557
shifti 338858409
sqri 723167938
sqrr 59397376
sqrs 2948
sqru 130217541
sqrz_i 58825038
truedvmdii 42957941
truedvmdis 42754532
truedvmdsi 3925410
trunc2nr 3308122
usqrt 4736397
vals 184419067

Generated by: LCOV version 1.9