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/gmp - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.8.0 lcov report (development 17710-c8a39c8) Lines: 641 716 89.5 %
Date: 2015-03-31 Functions: 53 54 98.1 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 424 533 79.5 %

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 122340495
addiispec 1263097995
adduispec 1066048241
adduispec_offset 318787688
addumului 1097496
affir 127580758
cmpiispec 1820853967
convi 466329
diviiexact 350888021
divis 39791
divis_rem 39872668
diviu_rem 126774357
diviuexact 342928791
diviuuexact 78763
divri 13669110
divri_with_gmp 3123591
divrr 90710740
divrr_with_gmp 16675618
dvmdii 683244123
equaliispec 28855189
floorr 488483
icopy_ef 12645456
incloop 21471891
incneg 5384
incpos 21461790
int_normalize 136810426
mantissa2nr 19232637
mpz2GEN 112559506
muliispec 1274115488
muliispec_mirror 50466108
muluispec 1438233375
muluui 100971
pari_gmp_free 3006
pari_gmp_realloc 0
pari_kernel_close 1224
pari_kernel_init 1732
red_montgomery 6135202
remi2n 10041535
resetloop 145608
roundr_up_ip 114100600
setloop 1475948
shiftispec 227627111
sqrispec 602772971
sqrispec_mirror 3756362
sqrtr_abs 15426516
sqrtremi 1402857
subiispec 1599425320
subiuspec 963383507
truncr 482424
umodiu 591984946
xmpn_copy 1194486
xmpn_mirror 189255798
xmpn_mirrorcopy 193009737
xmpn_zero 35225725

Generated by: LCOV version 1.9