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.18.0 lcov report (development 29732-95c6201d93) Lines: 2260 2325 97.2 %
Date: 2024-11-21 09:08:54 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
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 1953
Qp_sqrtn_unram 2037
Qp_sqrtn 2604
tan_huge_im 4018
gcotan 4214
rootsof1_cx 4536
teich 5298
teichmuller 5536
ser_pow_1 7966
val_from_i 7980
ser_powfrac 7987
ser_pow 8071
usqrtn 8113
Zp_teichmuller 10549
powPis 11683
upowers 12017
pow2Pis 12187
tofp_safe 13253
_oner 14196
powersr 14196
rootsof1q_cx 14224
rootsof1powinit 15092
sqrt_ser 18739
expm1_Ir 20130
mpsincosm1 20130
cxexpm1 20186
powr0 21133
pow_polmod 24145
mpexpm1 24683
gexpm1 26506
sqrtnint 27300
zellagmcx 28749
serchop0 37576
gsqrpowers 39711
pi_ramanujan 41362
log2_split 42037
gsqrtn 42459
shiftc_inplace 55223
consteuler 57674
mpeuler 57674
serexp 83433
swap_clone 83913
Qp_exp 108825
Qp_exp_safe 109287
agm 111664
agm1 111846
powruhalf 119899
Z2_sqrt 144690
mpexp0 146762
gcos 154868
powcx_prec 192846
Qp_log 195811
mplog 203741
gpowers0 207398
PiI2 268850
PiI2n 281268
logagmcx 299939
Z_to_padic 303499
pari_close_floats 324900
pari_init_floats 326275
agm1cx 337102
agmcx_a_b 365851
agmcx_init 365851
scalarpol_get_1 374138
rpowuu 445199
sqrtnof1 552811
_rpowuu_msqr 628219
pow_monome 634454
_one 780099
gpowers 780107
mpsin 834949
expIr 881803
logagmr_abs 995369
grootsof1_4 1003648
agm1r_abs 1069847
grootsof1 1168192
gsin 1252122
powps 1316673
expQ 1468577
_rpowuu_sqr 1618572
cubic_prec_mask 1734501
transvec 2006443
rootsof1u_cx 2156092
mpsinc 2319450
gsinc 2319562
gpowg0 2723142
mpcos 2745075
sqrtnr_abs 2796304
trans_eval 3875657
_mul 4149508
cxexp 4689971
gsincos 4699386
powrs 5102940
abpq_init 5483976
powcx 5520082
agmcx_gap 5539414
powru 6129322
_sqr 6370483
_mulr 7148687
powfrac 10529330
logr_aux 11896558
rootsof1pow 12516938
logr_abs 13712363
mpsincos 13830467
mpaut 15723791
agmr_gap 15783967
_sqrr 16301231
mpcosm1 17426083
glog 17886607
gexp 18584182
mpexp_basecase 18761035
exp1r_abs 18837634
modlog2 18855024
mpexp 18907615
powis 21221843
usqru 21496096
gpow 21645964
mplog2 28786914
constlog2 28786962
_muli 29953679
Pi2n 31260023
T2 37520717
mppi 46139727
constpi 46140099
powuu 46317377
gsqrt 62690788
abpq_sum 70516157
_sqri 81819854
powgi 104588448
powiu 108122305
powiu_sign 108171878
upowuu 111863942
gpowgs 116988899
mulii3 163213186

Generated by: LCOV version 1.16