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/gmp - mp.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.10.0 lcov report (development 22303-eb3e11d) Lines: 647 716 90.4 %
Date: 2018-04-21 06:16:28 Functions: 53 54 98.1 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
GEN2mpz 276512155
addiispec 1637035939
adduispec 1161919734
adduispec_offset 263076252
addumului 1012036
affir 120388686
cmpiispec 2066278895
convi 859297
diviiexact 273322141
divis 416827
divis_rem 42745853
diviu_rem 127843799
diviuexact 291493244
diviuuexact 544815
divri 19026084
divri_with_gmp 3388807
divrr 90723939
divrr_with_gmp 36573837
dvmdii 973951569
equaliispec 112309725
floorr 512206
icopy_ef 14130956
incloop 69390251
incneg 6268
incpos 69082630
int_normalize 92854298
mantissa2nr 25931251
mpz2GEN 265003915
muliispec 2322839619
muliispec_mirror 67553584
muluispec 2292468612
muluui 567023
pari_gmp_free 268727
pari_gmp_realloc 0
pari_kernel_close 916
pari_kernel_init 916
red_montgomery 13216731
remi2n 17538112
resetloop 170732
roundr_up_ip 307073319
setloop 2897369
shiftispec 400653289
sqrispec 788077034
sqrispec_mirror 5864718
sqrtr_abs 23833123
sqrtremi 3555626
subiispec 1657234407
subiuspec 829445692
truncr 1745526
umodiu 928405077
xmpn_copy 1874682
xmpn_mirror 204380541
xmpn_mirrorcopy 302494746
xmpn_zero 63795767

Generated by: LCOV version 1.11