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-bordeaux.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.10.0 lcov report (development 20459-9710128) Lines: 483 504 95.8 %
Date: 2017-04-29 05:33:44 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 22952812
addmulii_gen 13538202
addmulii_inplace 602313721
addmulii_lg3 171031724
affrr 803789497
dblexpo 0
dblmantissa 0
dbltor 4895808
div0r 53658
divir 2132337
divrs 2901546
divru 420951833
divsi 18
divsr 6252
divur 1256193
int2n 58398733
int2u 5111444
int2um1 408
invmod2BIL 17103077
invr 9615981
invr_basecase 9615981
mantissa_real 12305470
modii 971686221
modiiz 193104
mul0r 993738
mulii 6560555116
mulir 129154118
mulrr 1432071502
mulrrz_3 634585022
mulrrz_3end 644919125
mulrrz_end 840130604
mulrrz_i 1419956746
mulrrz_int 138858
mulsi 116621070
mulsr 32709267
mulss 151567790
mului 677908620
mulur 373056830
mulur_2 365916846
muluu 1305758578
rtodbl 24355949
shifti 617321900
sqri 1004063004
sqrr 65175408
sqrs 3588
sqru 484281434
sqrz_i 64340514
truedvmdii 33221427
truedvmdis 32962851
truedvmdsi 5214894
trunc2nr 4741092
usqrt 2948606
vals 2108220156

Generated by: LCOV version 1.11