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 setarch
The 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 |
powrshalf | 0 |
catalan | 14 |
constcatalan | 14 |
cxlog1p | 14 |
magm | 14 |
mpcatalan | 14 |
ellE | 21 |
ser_agm1 | 21 |
ellK | 28 |
ellK_i | 35 |
real_I | 35 |
serchop | 42 |
serchop_i | 42 |
cos_p | 49 |
is_ext_qfr | 49 |
ser_cmp_expo | 49 |
mplog1p | 63 |
sin_p | 63 |
mpcotan | 70 |
magm_gap | 84 |
Qp_exp_prec | 98 |
glog1p | 119 |
gpow0 | 126 |
log1p_i | 133 |
mptan | 133 |
powp | 161 |
gtan | 224 |
transvecgen | 329 |
Zn_sqrt | 420 |
powrfrac | 518 |
Qp_sqrtn_ram | 854 |
teichmullerinit | 1225 |
Qp_sqrt | 1897 |
trans_evalgen | 1967 |
Qp_sqrtn_unram | 2037 |
Qp_sqrtn | 2604 |
tan_huge_im | 4018 |
gcotan | 4214 |
rootsof1_cx | 4536 |
teich | 5565 |
teichmuller | 5803 |
ser_pow_1 | 7966 |
val_from_i | 7980 |
ser_powfrac | 7987 |
ser_pow | 8071 |
usqrtn | 8113 |
Zp_teichmuller | 10815 |
powPis | 11683 |
upowers | 12017 |
pow2Pis | 12187 |
tofp_safe | 13256 |
_oner | 14196 |
powersr | 14196 |
rootsof1q_cx | 14616 |
rootsof1powinit | 15575 |
sqrt_ser | 18739 |
expm1_Ir | 20130 |
mpsincosm1 | 20130 |
cxexpm1 | 20186 |
powr0 | 21132 |
pow_polmod | 24145 |
mpexpm1 | 24683 |
gexpm1 | 26506 |
sqrtnint | 27301 |
zellagmcx | 28749 |
serchop0 | 37576 |
gsqrpowers | 39711 |
pi_ramanujan | 41350 |
log2_split | 42040 |
gsqrtn | 42459 |
shiftc_inplace | 55391 |
consteuler | 57674 |
mpeuler | 57674 |
serexp | 83433 |
swap_clone | 83898 |
Qp_exp | 109097 |
Qp_exp_safe | 109559 |
agm | 111650 |
agm1 | 111832 |
powruhalf | 119896 |
Z2_sqrt | 144690 |
mpexp0 | 146761 |
gcos | 154854 |
powcx_prec | 192846 |
Qp_log | 196211 |
mplog | 203741 |
gpowers0 | 208014 |
PiI2 | 267723 |
PiI2n | 280190 |
logagmcx | 299939 |
Z_to_padic | 304146 |
pari_close_floats | 324838 |
pari_init_floats | 326358 |
agm1cx | 337102 |
agmcx_a_b | 365851 |
agmcx_init | 365851 |
scalarpol_get_1 | 374138 |
rpowuu | 445059 |
sqrtnof1 | 552884 |
_rpowuu_msqr | 627918 |
pow_monome | 634505 |
_one | 779709 |
gpowers | 779712 |
mpsin | 834943 |
expIr | 881878 |
logagmr_abs | 995336 |
grootsof1_4 | 1003650 |
agm1r_abs | 1069806 |
grootsof1 | 1169251 |
gsin | 1252117 |
powps | 1316940 |
expQ | 1468576 |
_rpowuu_sqr | 1617900 |
cubic_prec_mask | 1734586 |
transvec | 2006458 |
rootsof1u_cx | 2156982 |
mpsinc | 2319450 |
gsinc | 2319562 |
gpowg0 | 2722255 |
mpcos | 2745064 |
sqrtnr_abs | 2796272 |
trans_eval | 3875693 |
_mul | 4148071 |
cxexp | 4688825 |
gsincos | 4698250 |
powrs | 5103441 |
abpq_init | 5484908 |
powcx | 5518447 |
agmcx_gap | 5539414 |
powru | 6129286 |
_sqr | 6370646 |
_mulr | 7148673 |
powfrac | 10528173 |
logr_aux | 11896785 |
rootsof1pow | 12939507 |
logr_abs | 13712327 |
mpsincos | 13827976 |
mpaut | 15720582 |
agmr_gap | 15783420 |
_sqrr | 16301522 |
mpcosm1 | 17423344 |
glog | 17886561 |
gexp | 18582999 |
mpexp_basecase | 18761052 |
exp1r_abs | 18837496 |
modlog2 | 18855087 |
mpexp | 18907681 |
powis | 21221916 |
usqru | 21514685 |
gpow | 21646234 |
constlog2 | 28786924 |
mplog2 | 28786971 |
_muli | 29989859 |
Pi2n | 31256904 |
T2 | 37550761 |
mppi | 46136871 |
constpi | 46136882 |
powuu | 46423802 |
gsqrt | 62686695 |
abpq_sum | 70441066 |
_sqri | 81894145 |
powgi | 104587713 |
powiu | 111173471 |
powiu_sign | 111221583 |
upowuu | 112534848 |
gpowgs | 116989733 |
mulii3 | 163435737 |
Generated by: LCOV version 1.16 |