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 16912-212c0f0) Lines: 504 558 90.3 %
Date: 2014-10-20 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 25500565
addmulii_gen 17676651
addmulii_inplace 682060571
addmulii_lg3 184713753
affrr 791299892
dblexpo 0
dblmantissa 0
dbltor 3838141
div0r 68719
divir 2729843
divrs 3778157
divru 157000850
divsi 0
divsr 8653
divur 1514700
int2n 68451442
int2u 1285545
invmod2BIL 13815096
invr 7052966
invr_basecase 7052966
mantissa_real 12817808
modii 739508048
modiiz 470889
mul0r 1844833
mulii 4503461506
mulir 109300980
mulrr 1947493770
mulrrz_3 1155567517
mulrrz_3end 1163257406
mulrrz_end 839710812
mulrrz_i 1922996066
mulrrz_int 53829953
mulsi 98884210
mulsr 29852792
mulss 6908941
mului 557603138
mulur 142386401
mulur_2 134218885
muluu 907227142
rtodbl 13534866
shifti 450909778
sqri 1003957519
sqrr 80688518
sqrs 4138
sqru 181479645
sqrz_i 79516661
truedvmdii 60067753
truedvmdis 59804420
truedvmdsi 5495042
trunc2nr 4555679
usqrt 6617255
vals 213544794

Generated by: LCOV version 1.9