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 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.8.0 lcov report (development 18946-c0ba5ba) Lines: 1826 1877 97.3 %
Date: 2016-05-24 Functions: 135 138 97.8 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1151 1318 87.3 %

Function Name Sort by function name Hit count Sort by hit count
Pi2n 10571476
PiI2 4354
PiI2n 7054
Qp_exp 20772
Qp_exp_prec 19834
Qp_exp_safe 21234
Qp_log 7910
Qp_sqrt 1358
Qp_sqrtn 1183
Qp_sqrtn_ram 854
Qp_sqrtn_unram 616
T2 265104
Z2_sqrt 728
Zn_sqrt 350
Zp_teichmuller 1001
_mul 3982628
_muli 2843448
_mulr 3396781
_one 55062
_oner 22422
_rpowuu_msqr 103422
_rpowuu_sqr 370638
_sqr 10151438
_sqri 4159101
_sqrr 10679666
abpq_init 7945
abpq_sum 522335
agm 2361
agm1 2473
agm1cx 4075
agm1r_abs 286450
agmcx_a_b 4089
agmcx_gap 62567
agmcx_init 4089
agmr_gap 4024797
atanhQ_split 4512
bug_logp 7
catalan 14
cbrtr_abs 11916
constcatalan 14
consteuler 48921
constlog2 8866925
constpi 15496958
cos_p 49
cxexp 1136305
cxexpm1 4924
exp1r_abs 6770820
expIr 33729
expm1_Ir 4833
gcos 215126
gcotan 133
gexp 5298971
gexpm1 9845
glog 2582093
gpow 12447037
gpow0 126
gpowers 55069
gpowers0 21815
gpowg0 1226871
gpowgs 32638697
grootsof1 61337
grootsof1_4 55526
gsin 7147063
gsinc 107359
gsincos 1241663
gsqrpowers 18980
gsqrt 5012547
gsqrtn 2692
gtan 77
log2_split 2256
logagmcx 2927
logagmr_abs 303812
logr_abs 2392248
modlog2 6711022
mpaut 6210495
mpcatalan 14
mpcos 2805360
mpcosm1 11299758
mpcotan 21
mpeuler 48921
mpexp 6938064
mpexp0 227967
mpexp_basecase 6710097
mpexpm1 8571
mplog 239642
mplog2 8866925
mppi 15496033
mpsin 7143969
mpsinc 107303
mpsincos 1386013
mpsincosm1 4833
mptan 21
mulii3 894000
mulii4 265104
palogaux 7903
pari_close_floats 1836
pari_init_floats 190549
pi_ramanujan 3419
pow_monome 407251
pow_polmod 12111
powersr 22422
powgi 17263997
powis 14327389
powiu 20709390
powiu_sign 21040669
powp 161
powps 1855
powr0 1638
powrfrac 504
powrs 9404796
powrshalf 0
powru 167987
powruhalf 14518
powuu 9471813
rootsof1complex 7
rootsof1padic 0
rpowuu 164359
scalarpol_get_1 115948
ser_pow 189
ser_pow_1 189
ser_powfrac 210
serchop0 15288
serexp 27398
sin_p 63
sqrt_ser 1134
sqrtnint 27013
swap_clone 6142
teich 0
teichmuller 238
teichmullerinit 938
tofp_safe 11683
trans_eval 601684
transvec 35242
upowuu 10656588
usqrtn 429
usqru 2037544
val_from_i 203
zellagmcx 14

Generated by: LCOV version 1.9