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 |
| GEN2mpz | 117014292 |
| absdiviu_rem | 52882462 |
| addiispec | 3497631847 |
| adduispec | 2909497070 |
| adduispec_offset | 775280009 |
| addumului | 0 |
| affir | 422157858 |
| cmpiispec | 4255270896 |
| convi | 447820 |
| diviiexact | 561481580 |
| divis | 336637 |
| divis_rem | 94421233 |
| diviuexact | 34279537 |
| diviuexact_i | 441944934 |
| diviuuexact | 200898 |
| divri | 161201155 |
| divri_with_gmp | 35425583 |
| divrr | 151746961 |
| divrr_with_gmp | 78684391 |
| dvmdii | 2314111846 |
| equaliispec | 310392264 |
| floorr | 6429964 |
| icopy_ef | 42973822 |
| incloop | 64306090 |
| incneg | 66684 |
| incpos | 63902752 |
| int_normalize | 322934971 |
| mantissa2nr | 142730801 |
| mpz2GEN | 58507146 |
| muliispec | 6212994931 |
| muliispec_mirror | 86836573 |
| muluispec | 5943110951 |
| muluui | 223122 |
| pari_gmp_free | 1632821 |
| pari_gmp_realloc | 0 |
| pari_kernel_close | 1092 |
| pari_kernel_init | 1100 |
| pari_kernel_version | 4 |
| red_montgomery | 34723369 |
| remi2n | 38630787 |
| resetloop | 174380 |
| roundr_up_ip | 562367203 |
| setloop | 2999288 |
| shiftispec | 763754360 |
| sqrispec | 1082380684 |
| sqrispec_mirror | 42195509 |
| sqrtr_abs | 131569363 |
| sqrtremi | 5137711 |
| subiispec | 3276589795 |
| subiuspec | 1873961381 |
| truncr | 2530406 |
| umodiu | 1372905205 |
| xmpn_copy | 7066510 |
| xmpn_mirror | 609294549 |
| xmpn_mirrorcopy | 742265708 |
| xmpn_zero | 245679337 |
| Generated by: LCOV version 2.0-1 |