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 21723-7dc29a5) Lines: 521 566 92.0 %
Date: 2018-01-18 06:18:29 Functions: 51 53 96.2 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
dblexpo 0
dblmantissa 0
divsi 21
int2um1 476
divsr 7324
div0r 65001
modiiz 234441
sqrs 316940
mul0r 1175957
divur 1309896
divir 2507344
divrs 3836804
truedvmdsi 6084679
dbltor 6802016
trunc2nr 7188338
int2u 10313344
invr 11617566
invr_basecase 11617566
mantissa_real 16215977
invmod2BIL 18830050
addmulii_gen 20828345
addmulii 28386882
rtodbl 31131802
mulsr 39952192
int2n 42583148
mulrrz_int 60853504
usqrt 61902917
sqrz_i 83638214
sqrr 89893967
truedvmdis 140911327
truedvmdii 141794325
mulir 171144060
mulss 185031660
mulsi 197018914
addmulii_lg3 225088883
mulur_2 489432779
mulur 511137425
divru 555321232
sqru 667353118
mulrrz_3 742483431
mulrrz_3end 757585307
addmulii_inplace 791388465
shifti 839322663
mului 906306694
affrr 1035048525
mulrrz_end 1051901346
modii 1147083778
sqri 1253603997
mulrrz_i 1724380746
mulrr 1744890546
muluu 1821322893
vals 2398606110
mulii 7069410880

Generated by: LCOV version 1.11