Code coverage tests

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:

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
Current view: top level - basemath - trans1.c (source / functions) Hit Total Coverage
Test: PARI/GP v2.16.2 lcov report (development 29115-f22e516b23) Lines: 2256 2322 97.2 %
Date: 2024-03-19 08:06:49 Functions: 166 167 99.4 %
Legend: Lines: hit not hit

Function Name Sort by function name Hit count Sort by hit count
powrshalf 0
catalan 14
constcatalan 14
cxlog1p 14
magm 14
mpcatalan 14
ellE 21
ser_agm1 21
ellK 28
ellK_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
real_I 163
gtan 224
transvecgen 329
Zn_sqrt 420
powrfrac 511
Qp_sqrtn_ram 854
teichmullerinit 1225
trans_evalgen 1883
Qp_sqrt 1897
Qp_sqrtn_unram 2037
Qp_sqrtn 2604
rootsof1_cx 4480
teich 4739
teichmuller 4977
expm1_Ir 6396
mpsincosm1 6396
cxexpm1 6452
ser_pow_1 7854
val_from_i 7868
ser_powfrac 7875
pow2Pis 7903
ser_pow 7959
usqrtn 8107
Zp_teichmuller 9933
mpexpm1 10948
powPis 11591
upowers 12017
gexpm1 12763
tofp_safe 13254
_oner 13755
powersr 13755
rootsof1q_cx 14154
rootsof1powinit 14987
sqrt_ser 18669
powr0 21056
pow_polmod 23753
sqrtnint 24347
zellagmcx 28749
pi_ramanujan 31401
log2_split 31914
serchop0 37377
gsqrpowers 37394
tan_huge_im 39284
gcotan 39483
gsqrtn 41974
shiftc_inplace 53894
consteuler 57495
mpeuler 57495
swap_clone 63845
agm 74977
agm1 75159
serexp 82962
Qp_exp 108264
Qp_exp_safe 108726
powruhalf 117809
mpexp0 140091
Z2_sqrt 144690
gcos 154863
powcx_prec 187542
Qp_log 196485
gpowers0 200647
mplog 203444
logagmcx 258509
PiI2 265497
PiI2n 268094
agm1cx 295672
Z_to_padic 303677
pari_close_floats 316332
pari_init_floats 318172
agmcx_a_b 324421
agmcx_init 324421
_one 334587
gpowers 334594
scalarpol_get_1 370355
rpowuu 428872
sqrtnof1 543264
pow_monome 624698
_rpowuu_msqr 624920
mpsin 826140
expIr 872255
logagmr_abs 902654
agm1r_abs 940446
grootsof1_4 957969
grootsof1 1119635
powps 1305490
expQ 1468532
_rpowuu_sqr 1597247
cubic_prec_mask 1725056
transvec 2014361
rootsof1u_cx 2060049
gpowg0 2277992
gsin 2290222
mpsinc 2319450
gsinc 2319562
mpcos 2745071
sqrtnr_abs 2745566
_mul 3789315
trans_eval 3868113
cxexp 4166481
gsincos 4246167
abpq_init 4390533
powcx 4461275
agmcx_gap 4854196
powrs 5095532
_sqr 5711729
powru 6008837
_mulr 7053503
powfrac 9404447
logr_aux 11778418
rootsof1pow 12516441
mpsincos 13311259
logr_abs 13476685
agmr_gap 13786589
mpaut 15186738
_sqrr 16130527
mpcosm1 16884345
glog 17325338
gexp 17409553
mpexp_basecase 19146458
usqru 19148138
exp1r_abs 19209252
modlog2 19240177
mpexp 19286277
powis 21106402
gpow 21380192
mplog2 28481066
constlog2 28481080
T2 28513410
_muli 30001943
Pi2n 30338279
mppi 44942571
constpi 44942742
powuu 46240515
abpq_sum 53508680
gsqrt 57430258
_sqri 81908510
powiu_sign 96928502
powiu 97087806
upowuu 101188093
powgi 103367449
gpowgs 114844260
mulii3 121974818

Generated by: LCOV version 1.14