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 | 747 |
| pari_kernel_init | 749 |
| sqrispec_fft | 1446 |
| incneg | 25989 |
| muliispec_fft | 81825 |
| muliifft_unspliti | 83271 |
| mulliifft_params | 83271 |
| resetloop | 130656 |
| diviuuexact | 148215 |
| muluui | 164883 |
| muliifft_spliti | 165096 |
| convi | 305115 |
| Zf_sqr | 395904 |
| divis | 710889 |
| convi_dac | 724644 |
| sqrtispec2_sh | 905319 |
| sqrtispec1_sh | 1843752 |
| setloop | 2239581 |
| truncr | 2582331 |
| floorr | 2653635 |
| sqrtremi | 3330051 |
| remi2n | 13425237 |
| Zf_mul | 14929920 |
| muliifft_dis | 15242553 |
| diviuexact | 20901327 |
| muliifft_dit | 30090648 |
| incpos | 31916661 |
| incloop | 32194110 |
| mantissa2nr | 32984217 |
| red_montgomery | 35697213 |
| diviuexact_i | 41512146 |
| divis_rem | 58865385 |
| sqrtr_abs | 71713962 |
| xmpn_zero | 71713962 |
| sqrtispec2 | 72294387 |
| p_sqrtu2 | 73199706 |
| p_sqrtu1 | 75043458 |
| divrr | 104865306 |
| divri | 105124452 |
| absdiviu_rem | 158188041 |
| Zf_add | 182144640 |
| Zf_mulsqrt2 | 182144640 |
| Zf_sub | 185396103 |
| equaliispec | 187379520 |
| Zf_shift | 200217993 |
| sqrtispec | 277181925 |
| affir | 305083044 |
| adduispec_offset | 344526237 |
| roundr_up_ip | 352417564 |
| diviiexact | 363691824 |
| Zf_red_destroy | 387560190 |
| catii | 409775076 |
| addshiftw | 597134595 |
| int_normalize | 776654586 |
| sqrispec_basecase | 852623886 |
| sqrispec | 859633443 |
| xmpn_copy | 925353123 |
| shiftispec | 1155847986 |
| umodiu | 1269671085 |
| dvmdii | 1315352301 |
| subiuspec | 1504866267 |
| adduispec | 2157767097 |
| subiispec | 3371377158 |
| cmpiispec | 3916773531 |
| muluispec | 4220788986 |
| addiispec | 4353582063 |
| muliispec_basecase | 4433679522 |
| muliispec | 4624357962 |
| Generated by: LCOV version 1.14 |