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 17588-7fd783e) Lines: 512 558 91.8 %
Date: 2015-03-04 Functions: 50 52 96.2 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 408 562 72.6 %

Function Name Sort by function name Hit count Sort by hit count
addmulii 29698166
addmulii_gen 18885710
addmulii_inplace 726863945
addmulii_lg3 204015876
affrr 969297804
dblexpo 0
dblmantissa 0
dbltor 4153191
div0r 88669
divir 2759996
divrs 3794628
divru 184630414
divsi 21
divsr 9217
divur 1526830
int2n 73042827
int2u 1340564
invmod2BIL 15214093
invr 7509991
invr_basecase 7509991
mantissa_real 15166939
modii 1016874488
modiiz 476431
mul0r 1146785
mulii 6146707816
mulir 136228648
mulrr 2291336420
mulrrz_3 1399296740
mulrrz_3end 1412975303
mulrrz_end 944957319
mulrrz_i 2260733021
mulrrz_int 54685274
mulsi 116294376
mulsr 33597024
mulss 7572695
mului 753130086
mulur 172343528
mulur_2 164521276
muluu 1100695871
rtodbl 39433624
shifti 492485778
sqri 1043579316
sqrr 98052179
sqrs 4166
sqru 306103694
sqrz_i 96361440
truedvmdii 64854390
truedvmdis 64535641
truedvmdsi 5495048
trunc2nr 5252147
usqrt 6355464
vals 593185316

Generated by: LCOV version 1.9