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 | 447824 |
| pari_gmp_free | 1632820 |
| truncr | 2530487 |
| setloop | 2999288 |
| sqrtremi | 5137840 |
| floorr | 6429978 |
| xmpn_copy | 7067280 |
| diviuexact | 34277587 |
| red_montgomery | 34728359 |
| divri_with_gmp | 35425596 |
| remi2n | 38604581 |
| sqrispec_mirror | 42195476 |
| icopy_ef | 42976044 |
| absdiviu_rem | 52896239 |
| mpz2GEN | 58510345 |
| incpos | 63891605 |
| incloop | 64294941 |
| divrr_with_gmp | 78684212 |
| muliispec_mirror | 86836573 |
| divis_rem | 94398253 |
| GEN2mpz | 117020690 |
| sqrtr_abs | 131571087 |
| mantissa2nr | 142732733 |
| divrr | 151748814 |
| divri | 161200497 |
| xmpn_zero | 245680895 |
| equaliispec | 310392810 |
| int_normalize | 322836460 |
| affir | 422187550 |
| diviuexact_i | 441881924 |
| diviiexact | 561422207 |
| roundr_up_ip | 562369823 |
| xmpn_mirror | 609321638 |
| xmpn_mirrorcopy | 742269240 |
| shiftispec | 763934928 |
| adduispec_offset | 775237788 |
| sqrispec | 1083144342 |
| umodiu | 1372830746 |
| subiuspec | 1873944463 |
| dvmdii | 2315586896 |
| adduispec | 2909361376 |
| subiispec | 3277985341 |
| addiispec | 3498150508 |
| cmpiispec | 4257260045 |
| muluispec | 5943453121 |
| muliispec | 6213362889 |
| Generated by: LCOV version 2.0-1 |