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 | 447817 |
| pari_gmp_free | 1632821 |
| truncr | 2530524 |
| setloop | 2999288 |
| sqrtremi | 5137797 |
| floorr | 6430010 |
| xmpn_copy | 7066592 |
| diviuexact | 34277745 |
| red_montgomery | 34730284 |
| divri_with_gmp | 35425289 |
| remi2n | 38558972 |
| sqrispec_mirror | 42195509 |
| icopy_ef | 42969788 |
| absdiviu_rem | 52884418 |
| mpz2GEN | 58509686 |
| incpos | 63906257 |
| incloop | 64309593 |
| divrr_with_gmp | 78686554 |
| muliispec_mirror | 86836573 |
| divis_rem | 94406523 |
| GEN2mpz | 117019372 |
| sqrtr_abs | 131573940 |
| mantissa2nr | 142732150 |
| divrr | 151751016 |
| divri | 161200187 |
| xmpn_zero | 245685783 |
| equaliispec | 310393082 |
| int_normalize | 322837378 |
| affir | 422162366 |
| diviuexact_i | 441881770 |
| diviiexact | 561421468 |
| roundr_up_ip | 562370613 |
| xmpn_mirror | 609302753 |
| xmpn_mirrorcopy | 742277638 |
| shiftispec | 763987457 |
| adduispec_offset | 775143578 |
| sqrispec | 1083321065 |
| umodiu | 1373973518 |
| subiuspec | 1873915387 |
| dvmdii | 2315762923 |
| adduispec | 2910539126 |
| subiispec | 3278143778 |
| addiispec | 3498209589 |
| cmpiispec | 4257580630 |
| muluispec | 5943394207 |
| muliispec | 6213300014 |
| Generated by: LCOV version 2.0-1 |