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 | 795 |
| pari_kernel_init | 797 |
| sqrispec_fft | 1704 |
| incneg | 50013 |
| muliispec_fft | 83907 |
| muliifft_unspliti | 85611 |
| mulliifft_params | 85611 |
| resetloop | 130656 |
| diviuuexact | 150129 |
| muluui | 166797 |
| muliifft_spliti | 169518 |
| divis | 245628 |
| sqrtispec2_sh | 271362 |
| convi | 319423 |
| Zf_sqr | 456960 |
| convi_dac | 738921 |
| setloop | 2248404 |
| truncr | 2544978 |
| sqrtispec1_sh | 2711751 |
| sqrtremi | 3769731 |
| floorr | 5201916 |
| Zf_mul | 15405696 |
| muliifft_dis | 15777045 |
| remi2n | 20286096 |
| diviuexact | 22348263 |
| diviuexact_i | 29646501 |
| muliifft_dit | 31098834 |
| incpos | 34964892 |
| incloop | 35267391 |
| red_montgomery | 36218184 |
| mantissa2nr | 49456956 |
| divis_rem | 65910108 |
| sqrtr_abs | 94741878 |
| xmpn_zero | 94741878 |
| sqrtispec2 | 95527941 |
| p_sqrtu2 | 95799303 |
| p_sqrtu1 | 98511054 |
| divri | 114999012 |
| divrr | 136094145 |
| Zf_add | 188551872 |
| Zf_mulsqrt2 | 188551872 |
| Zf_sub | 191995812 |
| Zf_shift | 207293763 |
| equaliispec | 227977368 |
| absdiviu_rem | 234878070 |
| affir | 324807933 |
| sqrtispec | 337793739 |
| diviiexact | 389355546 |
| Zf_red_destroy | 401272128 |
| roundr_up_ip | 449700250 |
| catii | 484531596 |
| adduispec_offset | 492052761 |
| addshiftw | 715528347 |
| int_normalize | 868575318 |
| sqrispec_basecase | 995406615 |
| sqrispec | 1005387972 |
| xmpn_copy | 1106248065 |
| shiftispec | 1291176897 |
| umodiu | 1430402205 |
| subiuspec | 1595316582 |
| dvmdii | 1689042066 |
| adduispec | 2393388708 |
| subiispec | 3407324547 |
| cmpiispec | 4130171373 |
| addiispec | 4592291457 |
| muluispec | 4840511646 |
| muliispec_basecase | 5154743679 |
| muliispec | 5383248945 |
| Generated by: LCOV version 1.16 |