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 | 1659 |
| incneg | 50013 |
| muliispec_fft | 83631 |
| muliifft_unspliti | 85290 |
| mulliifft_params | 85290 |
| resetloop | 130656 |
| diviuuexact | 149898 |
| muluui | 166566 |
| muliifft_spliti | 168921 |
| divis | 239928 |
| sqrtispec2_sh | 269145 |
| convi | 317129 |
| Zf_sqr | 448896 |
| convi_dac | 737475 |
| setloop | 2248323 |
| truncr | 2524290 |
| sqrtispec1_sh | 2724684 |
| sqrtremi | 3778497 |
| floorr | 5179086 |
| Zf_mul | 15338496 |
| muliifft_dis | 15702102 |
| remi2n | 19965222 |
| diviuexact | 22265811 |
| diviuexact_i | 28341114 |
| muliifft_dit | 30956967 |
| incpos | 34964307 |
| incloop | 35266806 |
| red_montgomery | 40631727 |
| mantissa2nr | 48834480 |
| divis_rem | 65022168 |
| sqrtr_abs | 91524477 |
| xmpn_zero | 91524477 |
| sqrtispec2 | 92308590 |
| p_sqrtu2 | 92577735 |
| p_sqrtu1 | 95302419 |
| divri | 114179361 |
| divrr | 129806724 |
| Zf_add | 187658496 |
| Zf_mulsqrt2 | 187658496 |
| Zf_sub | 191070960 |
| equaliispec | 197007570 |
| Zf_shift | 206264025 |
| absdiviu_rem | 232258122 |
| affir | 320531190 |
| sqrtispec | 329275119 |
| diviiexact | 377796366 |
| Zf_red_destroy | 399271821 |
| roundr_up_ip | 441725587 |
| catii | 473933058 |
| adduispec_offset | 490295577 |
| addshiftw | 706724970 |
| int_normalize | 855394224 |
| sqrispec_basecase | 939294288 |
| sqrispec | 949233780 |
| xmpn_copy | 1080378948 |
| shiftispec | 1283483217 |
| umodiu | 1338939111 |
| subiuspec | 1575810870 |
| dvmdii | 1664107872 |
| adduispec | 2374191885 |
| subiispec | 3363566844 |
| cmpiispec | 4079544447 |
| addiispec | 4546755477 |
| muluispec | 4789661118 |
| muliispec_basecase | 5117858649 |
| muliispec | 5344635087 |
| Generated by: LCOV version 1.16 |