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 | 789 |
| pari_kernel_init | 791 |
| sqrispec_fft | 1704 |
| incneg | 50013 |
| muliispec_fft | 83817 |
| muliifft_unspliti | 85521 |
| mulliifft_params | 85521 |
| resetloop | 130656 |
| diviuuexact | 149898 |
| muluui | 166566 |
| muliifft_spliti | 169338 |
| divis | 239031 |
| sqrtispec2_sh | 271275 |
| convi | 318326 |
| Zf_sqr | 456960 |
| convi_dac | 739068 |
| setloop | 2248395 |
| truncr | 2555445 |
| sqrtispec1_sh | 2710683 |
| sqrtremi | 3768579 |
| floorr | 5204907 |
| Zf_mul | 15381120 |
| muliifft_dis | 15752559 |
| remi2n | 20315364 |
| diviuexact | 22390323 |
| diviuexact_i | 29660823 |
| muliifft_dit | 31049862 |
| incpos | 34964676 |
| incloop | 35267175 |
| red_montgomery | 36216750 |
| mantissa2nr | 49394493 |
| divis_rem | 65918394 |
| sqrtr_abs | 91764582 |
| xmpn_zero | 91764582 |
| sqrtispec2 | 92550648 |
| p_sqrtu2 | 92821923 |
| p_sqrtu1 | 95532606 |
| divri | 114499098 |
| divrr | 130288173 |
| Zf_add | 188238528 |
| Zf_mulsqrt2 | 188238528 |
| Zf_sub | 191668980 |
| equaliispec | 198956025 |
| Zf_shift | 206929605 |
| absdiviu_rem | 234812985 |
| affir | 323929146 |
| sqrtispec | 329873292 |
| diviiexact | 387226863 |
| Zf_red_destroy | 400568400 |
| roundr_up_ip | 442626262 |
| catii | 474645288 |
| adduispec_offset | 491115630 |
| addshiftw | 710088270 |
| int_normalize | 857474613 |
| sqrispec_basecase | 936349047 |
| sqrispec | 946330356 |
| xmpn_copy | 1082154645 |
| shiftispec | 1283668158 |
| umodiu | 1428391176 |
| subiuspec | 1592174313 |
| dvmdii | 1681481304 |
| adduispec | 2390505345 |
| subiispec | 3398096658 |
| cmpiispec | 4116999438 |
| addiispec | 4589002455 |
| muluispec | 4837462446 |
| muliispec_basecase | 5149731156 |
| muliispec | 5377987695 |
| Generated by: LCOV version 1.16 |