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 setarchThe 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_kernel_version | 2 |
| pari_kernel_close | 786 |
| pari_kernel_init | 788 |
| sqrispec_fft | 1704 |
| incneg | 50013 |
| muliispec_fft | 83772 |
| muliifft_unspliti | 85476 |
| mulliifft_params | 85476 |
| resetloop | 130656 |
| diviuuexact | 149898 |
| muluui | 166566 |
| muliifft_spliti | 169248 |
| divis | 239031 |
| sqrtispec2_sh | 271275 |
| convi | 318027 |
| Zf_sqr | 456960 |
| convi_dac | 737838 |
| setloop | 2248395 |
| truncr | 2555445 |
| sqrtispec1_sh | 2710680 |
| sqrtremi | 3768573 |
| floorr | 5204907 |
| Zf_mul | 15368832 |
| muliifft_dis | 15740316 |
| remi2n | 20312865 |
| diviuexact | 22390290 |
| diviuexact_i | 29660787 |
| muliifft_dit | 31025376 |
| incpos | 34964676 |
| incloop | 35267175 |
| red_montgomery | 36216201 |
| mantissa2nr | 49394472 |
| divis_rem | 65918388 |
| sqrtr_abs | 91764573 |
| xmpn_zero | 91764573 |
| sqrtispec2 | 92550636 |
| p_sqrtu2 | 92821911 |
| p_sqrtu1 | 95532591 |
| divri | 114499065 |
| divrr | 130288170 |
| Zf_add | 188081856 |
| Zf_mulsqrt2 | 188081856 |
| Zf_sub | 191505564 |
| equaliispec | 199027176 |
| Zf_shift | 206747526 |
| absdiviu_rem | 234812904 |
| affir | 323929128 |
| sqrtispec | 329873271 |
| diviiexact | 397170897 |
| Zf_red_destroy | 400216536 |
| roundr_up_ip | 442626238 |
| catii | 474645270 |
| adduispec_offset | 491137107 |
| addshiftw | 709904793 |
| int_normalize | 857256936 |
| sqrispec_basecase | 936391305 |
| sqrispec | 946373430 |
| xmpn_copy | 1082154591 |
| shiftispec | 1288740924 |
| umodiu | 1432446720 |
| subiuspec | 1597876791 |
| dvmdii | 1685581455 |
| adduispec | 2399703315 |
| subiispec | 3403363776 |
| cmpiispec | 4133841690 |
| addiispec | 4597594146 |
| muluispec | 4860057960 |
| muliispec_basecase | 5172049227 |
| muliispec | 5400213162 |
| Generated by: LCOV version 1.16 |