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 21188-db834f2) Lines: 521 566 92.0 %
Date: 2017-10-20 06:23:07 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
addmulii 27622937
addmulii_gen 20862555
addmulii_inplace 782926636
addmulii_lg3 223803277
affrr 1012627288
dblexpo 0
dblmantissa 0
dbltor 6727693
div0r 65015
divir 2500283
divrs 3507506
divru 537174959
divsi 21
divsr 7324
divur 1302411
int2n 41048084
int2u 10002344
int2um1 476
invmod2BIL 18758745
invr 11249315
invr_basecase 11249315
mantissa_real 15888653
modii 1197462912
modiiz 229891
mul0r 1175719
mulii 7038631201
mulir 163811534
mulrr 1709814925
mulrrz_3 732354500
mulrrz_3end 745442243
mulrrz_end 1028666529
mulrrz_i 1691746223
mulrrz_int 60536925
mulsi 209185202
mulsr 39216842
mulss 177089304
mului 971276541
mulur 492131418
mulur_2 473620814
muluu 1818724507
rtodbl 29751160
shifti 837438295
sqri 1366750563
sqrr 81709562
sqrs 888000
sqru 677418694
sqrz_i 80895244
truedvmdii 45906661
truedvmdis 45016424
truedvmdsi 6084595
trunc2nr 7138348
usqrt 59701219
vals 2477978967

Generated by: LCOV version 1.11