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_gmp_realloc | 0 |
| pari_kernel_version | 4 |
| pari_kernel_close | 1092 |
| pari_kernel_init | 1100 |
| incneg | 66684 |
| resetloop | 174380 |
| diviuuexact | 200898 |
| muluui | 223122 |
| divis | 336639 |
| convi | 447821 |
| pari_gmp_free | 1632831 |
| truncr | 2530539 |
| setloop | 2999288 |
| sqrtremi | 5137806 |
| floorr | 6429948 |
| xmpn_copy | 7066381 |
| diviuexact | 34278531 |
| red_montgomery | 34732953 |
| divri_with_gmp | 35425482 |
| remi2n | 38586649 |
| sqrispec_mirror | 42195542 |
| icopy_ef | 42971912 |
| absdiviu_rem | 52881544 |
| mpz2GEN | 58511933 |
| incpos | 63939211 |
| incloop | 64342547 |
| divrr_with_gmp | 78685875 |
| muliispec_mirror | 86836573 |
| divis_rem | 94398376 |
| GEN2mpz | 117023866 |
| sqrtr_abs | 131570410 |
| mantissa2nr | 142730908 |
| divrr | 151749026 |
| divri | 161200258 |
| xmpn_zero | 245681767 |
| equaliispec | 310392725 |
| int_normalize | 322817858 |
| affir | 422162797 |
| diviuexact_i | 441898462 |
| diviiexact | 561439120 |
| roundr_up_ip | 562375317 |
| xmpn_mirror | 609300620 |
| xmpn_mirrorcopy | 742271515 |
| shiftispec | 763958339 |
| adduispec_offset | 775197362 |
| sqrispec | 1083009583 |
| umodiu | 1375780468 |
| subiuspec | 1874041150 |
| dvmdii | 2315251146 |
| adduispec | 2912436120 |
| subiispec | 3277761565 |
| addiispec | 3498094734 |
| cmpiispec | 4256986867 |
| muluispec | 5943434601 |
| muliispec | 6213317743 |
| Generated by: LCOV version 2.0-1 |