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 | 83910 |
| muliifft_unspliti | 85614 |
| mulliifft_params | 85614 |
| resetloop | 130656 |
| diviuuexact | 150129 |
| muluui | 166797 |
| muliifft_spliti | 169524 |
| divis | 245313 |
| sqrtispec2_sh | 271362 |
| convi | 319446 |
| Zf_sqr | 456960 |
| convi_dac | 739083 |
| setloop | 2248404 |
| truncr | 2544993 |
| sqrtispec1_sh | 2711637 |
| sqrtremi | 3769617 |
| floorr | 5201928 |
| Zf_mul | 15406080 |
| muliifft_dis | 15777426 |
| remi2n | 20286087 |
| diviuexact | 22347861 |
| diviuexact_i | 29646531 |
| muliifft_dit | 31099596 |
| incpos | 34964892 |
| incloop | 35267391 |
| red_montgomery | 36219024 |
| mantissa2nr | 49458891 |
| divis_rem | 65910132 |
| sqrtr_abs | 94856505 |
| xmpn_zero | 94856505 |
| sqrtispec2 | 95642568 |
| p_sqrtu2 | 95913930 |
| p_sqrtu1 | 98625567 |
| divri | 115010592 |
| divrr | 136166829 |
| Zf_add | 188555904 |
| Zf_mulsqrt2 | 188555904 |
| Zf_sub | 191999844 |
| Zf_shift | 207298173 |
| equaliispec | 227977413 |
| absdiviu_rem | 234877527 |
| affir | 324822609 |
| sqrtispec | 338048487 |
| diviiexact | 389352477 |
| Zf_red_destroy | 401280648 |
| roundr_up_ip | 449787568 |
| catii | 484811838 |
| adduispec_offset | 492056895 |
| addshiftw | 715855755 |
| int_normalize | 868875765 |
| sqrispec_basecase | 995461779 |
| sqrispec | 1005452730 |
| xmpn_copy | 1106973156 |
| shiftispec | 1291365600 |
| umodiu | 1430412456 |
| subiuspec | 1595374638 |
| dvmdii | 1689198552 |
| adduispec | 2393381163 |
| subiispec | 3407602401 |
| cmpiispec | 4130376960 |
| addiispec | 4592749134 |
| muluispec | 4840503396 |
| muliispec_basecase | 5154918015 |
| muliispec | 5383507380 |
| Generated by: LCOV version 1.16 |