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:
x86_32
architecture at
Configure time via setarch
The target is to exceed 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 | |||||||||||||||||||||||||
![]() | |||||||||||||||||||||||||
|
|||||||||||||||||||||||||
![]() |
Function Name ![]() |
Hit count ![]() |
addumului | 0 |
pari_gmp_realloc | 0 |
pari_kernel_version | 4 |
pari_kernel_close | 1104 |
pari_kernel_init | 1112 |
incneg | 66684 |
resetloop | 174328 |
diviuuexact | 200466 |
muluui | 222722 |
convi | 438614 |
divis | 966679 |
pari_gmp_free | 1744699 |
setloop | 2997602 |
truncr | 3547005 |
sqrtremi | 5114921 |
xmpn_copy | 6698247 |
floorr | 7002420 |
red_montgomery | 34859547 |
divri_with_gmp | 35238134 |
remi2n | 37415253 |
diviuexact | 39178759 |
icopy_ef | 41190427 |
sqrispec_mirror | 41402317 |
mpz2GEN | 57558531 |
divrr_with_gmp | 75810834 |
muliispec_mirror | 85098245 |
divis_rem | 85250877 |
incpos | 103218549 |
incloop | 103626058 |
absdiviu_rem | 109905218 |
GEN2mpz | 115113761 |
sqrtr_abs | 125661301 |
mantissa2nr | 137413755 |
divrr | 141862169 |
divri | 151128120 |
xmpn_zero | 236429862 |
equaliispec | 267244934 |
int_normalize | 306691081 |
affir | 401232676 |
diviuexact_i | 414024125 |
roundr_up_ip | 524480912 |
diviiexact | 525935802 |
xmpn_mirror | 584640809 |
shiftispec | 704265341 |
xmpn_mirrorcopy | 716004477 |
adduispec_offset | 765328458 |
sqrispec | 1019918307 |
umodiu | 1304936819 |
subiuspec | 1767938159 |
dvmdii | 2177870951 |
adduispec | 2780068770 |
subiispec | 3003467509 |
addiispec | 3320913599 |
cmpiispec | 3942564355 |
muluispec | 5582734134 |
muliispec | 5921070891 |
![]() |
Generated by: LCOV version 1.16 |