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 | 447820 |
| pari_gmp_free | 1632819 |
| truncr | 2530488 |
| setloop | 2999288 |
| sqrtremi | 5137692 |
| floorr | 6429975 |
| xmpn_copy | 7066359 |
| diviuexact | 34277240 |
| red_montgomery | 34730577 |
| divri_with_gmp | 35425766 |
| remi2n | 38621541 |
| sqrispec_mirror | 42195509 |
| icopy_ef | 42970110 |
| absdiviu_rem | 52884359 |
| mpz2GEN | 58507119 |
| incpos | 63912492 |
| incloop | 64315828 |
| divrr_with_gmp | 78685216 |
| muliispec_mirror | 86836573 |
| divis_rem | 94377252 |
| GEN2mpz | 117014238 |
| sqrtr_abs | 131573713 |
| mantissa2nr | 142732271 |
| divrr | 151748952 |
| divri | 161200749 |
| xmpn_zero | 245684695 |
| equaliispec | 310390796 |
| int_normalize | 322893322 |
| affir | 422133419 |
| diviuexact_i | 441864379 |
| diviiexact | 561401833 |
| roundr_up_ip | 562358550 |
| xmpn_mirror | 609284388 |
| xmpn_mirrorcopy | 742271510 |
| shiftispec | 763799280 |
| adduispec_offset | 775272080 |
| sqrispec | 1082669983 |
| umodiu | 1372883052 |
| subiuspec | 1873863017 |
| dvmdii | 2314644511 |
| adduispec | 2909348600 |
| subiispec | 3277019006 |
| addiispec | 3497710936 |
| cmpiispec | 4255877683 |
| muluispec | 5942929943 |
| muliispec | 6212840493 |
| Generated by: LCOV version 2.0-1 |