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 | 336637 |
| convi | 447825 |
| pari_gmp_free | 1632829 |
| truncr | 2530440 |
| setloop | 2999288 |
| sqrtremi | 5137860 |
| floorr | 6429926 |
| xmpn_copy | 7066559 |
| diviuexact | 34279654 |
| red_montgomery | 34728771 |
| divri_with_gmp | 35425496 |
| remi2n | 38669466 |
| sqrispec_mirror | 42195542 |
| icopy_ef | 42977494 |
| absdiviu_rem | 52880490 |
| mpz2GEN | 58515044 |
| incpos | 63839554 |
| incloop | 64242891 |
| divrr_with_gmp | 78685964 |
| muliispec_mirror | 86836573 |
| divis_rem | 94421341 |
| GEN2mpz | 117030088 |
| sqrtr_abs | 131574223 |
| mantissa2nr | 142738333 |
| divrr | 151752634 |
| divri | 161202222 |
| xmpn_zero | 245685683 |
| equaliispec | 310395143 |
| int_normalize | 322925494 |
| affir | 422218816 |
| diviuexact_i | 441948391 |
| diviiexact | 561494973 |
| roundr_up_ip | 562389793 |
| xmpn_mirror | 609345490 |
| xmpn_mirrorcopy | 742283959 |
| shiftispec | 764095457 |
| adduispec_offset | 775349273 |
| sqrispec | 1083303299 |
| umodiu | 1374466794 |
| subiuspec | 1874156305 |
| dvmdii | 2316031048 |
| adduispec | 2911165464 |
| subiispec | 3278372940 |
| addiispec | 3498377109 |
| cmpiispec | 4257803431 |
| muluispec | 5943827497 |
| muliispec | 6213680077 |
| Generated by: LCOV version 2.0-1 |