LCOV - code coverage report
Current view:
top level
-
Modules/_decimal
- _decimal.c
(
source
/ functions)
Hit
Total
Coverage
Test:
CPython 3.12 LCOV report [commit acb105a7c1f]
Lines:
1873
2174
86.2 %
Date:
2022-07-20 13:12:14
Functions:
243
247
98.4 %
Branches:
1604
2171
73.9 %
Function Name
Hit count
PyDecContext_Apply
224
PyDecType_FromCString
3962
PyDecType_FromCStringExact
131640
PyDecType_FromDecimalExact
3025
PyDecType_FromFloat
218
PyDecType_FromFloatExact
13382
PyDecType_FromLong
12
PyDecType_FromLongExact
76846
PyDecType_FromObjectExact
196677
PyDecType_FromSequence
9
PyDecType_FromSequenceExact
44
PyDecType_FromSsize
1
PyDecType_FromSsizeExact
3
PyDecType_FromUnicode
3957
PyDecType_FromUnicodeExactWS
131610
PyDecType_New
331493
PyDec_AsFloat
1489
PyDec_AsTuple
50
PyDec_FromObject
4193
PyDec_GetCurrentContext
30
PyDec_Round
52
PyDec_SetCurrentContext
311
PyDec_ToIntegralExact
16
PyDec_ToIntegralValue
1028
PyInit__decimal
50
_dec_hash
5097
_dec_settriple
61584
_mpd_round
1
cfunc_noargs
100
context_clear_flags
65534
context_clear_traps
4
context_copy
196
context_dealloc
16239
context_getattr
1433526
context_getcapitals
7795
context_getclamp
7795
context_getemax
7798
context_getemin
7800
context_getetiny
2
context_getetop
2
context_getprec
7820
context_getround
7795
context_init
16389
context_new
16389
context_reduce
7782
context_repr
2
context_setattr
3168
context_setattrs
16548
context_setcapitals
15582
context_setclamp
15685
context_setemax
16004
context_setemin
15999
context_setprec
16920
context_setround
16428
context_setstatus_dict
10
context_setstatus_list
15561
context_settraps_dict
10
context_settraps_list
15562
convert_op
214713
convert_op_cmp
20627
ctx_canonical
4
ctx_copy_decimal
133
ctx_create_decimal
4194
ctx_from_float
9
ctx_iscanonical
212
ctx_mpd_class
175
ctx_mpd_compare_total
1906
ctx_mpd_compare_total_mag
1892
ctx_mpd_isfinite
214
ctx_mpd_isinfinite
214
ctx_mpd_isnan
214
ctx_mpd_isnormal
214
ctx_mpd_isqnan
214
ctx_mpd_issigned
214
ctx_mpd_issnan
214
ctx_mpd_issubnormal
214
ctx_mpd_iszero
214
ctx_mpd_qabs
256
ctx_mpd_qadd
5643
ctx_mpd_qand
930
ctx_mpd_qcompare
2749
ctx_mpd_qcompare_signal
1121
ctx_mpd_qcopy_abs
134
ctx_mpd_qcopy_negate
134
ctx_mpd_qcopy_sign
334
ctx_mpd_qdiv
3050
ctx_mpd_qdivint
1937
ctx_mpd_qdivmod
10
ctx_mpd_qexp
439
ctx_mpd_qfma
5417
ctx_mpd_qinvert
476
ctx_mpd_qln
413
ctx_mpd_qlog10
388
ctx_mpd_qlogb
346
ctx_mpd_qmax
846
ctx_mpd_qmax_mag
802
ctx_mpd_qmin
814
ctx_mpd_qmin_mag
772
ctx_mpd_qminus
218
ctx_mpd_qmul
2474
ctx_mpd_qnext_minus
273
ctx_mpd_qnext_plus
275
ctx_mpd_qnext_toward
950
ctx_mpd_qor
861
ctx_mpd_qplus
235
ctx_mpd_qpow
5329
ctx_mpd_qquantize
2136
ctx_mpd_qreduce
437
ctx_mpd_qrem
2325
ctx_mpd_qrem_near
1505
ctx_mpd_qrotate
673
ctx_mpd_qround_to_int
173
ctx_mpd_qround_to_intx
536
ctx_mpd_qscaleb
545
ctx_mpd_qshift
678
ctx_mpd_qsqrt
3597
ctx_mpd_qsub
2569
ctx_mpd_qxor
910
ctx_mpd_radix
3
ctx_mpd_same_quantum
1007
ctx_mpd_to_eng
644
ctx_mpd_to_sci
3303
ctxmanager_dealloc
159
ctxmanager_new
162
ctxmanager_restore_global
149
ctxmanager_set_local
149
current_context
238210
dec_addstatus
375967
dec_apply
225
dec_as_integer_ratio
12410
dec_as_long
22490
dec_canonical
3
dec_ceil
14
dec_complex
17
dec_conjugate
2
dec_copy
4
dec_dealloc
331493
dec_floor
14
dec_format
220
dec_from_float
1223
dec_from_long
76858
dec_hash
5768
dec_imag
1
dec_mpd_adjexp
4
dec_mpd_class
7
dec_mpd_compare_total
4
dec_mpd_compare_total_mag
3
dec_mpd_iscanonical
2
dec_mpd_isfinite
43
dec_mpd_isinfinite
9
dec_mpd_isnan
23
dec_mpd_isnormal
6
dec_mpd_isqnan
4
dec_mpd_issigned
2
dec_mpd_issnan
2
dec_mpd_issubnormal
6
dec_mpd_iszero
3
dec_mpd_qand
8
dec_mpd_qcompare
8
dec_mpd_qcompare_signal
8
dec_mpd_qcopy_abs
2
dec_mpd_qcopy_negate
2
dec_mpd_qcopy_sign
6
dec_mpd_qexp
9
dec_mpd_qfma
17
dec_mpd_qinvert
7
dec_mpd_qln
9
dec_mpd_qlog10
10
dec_mpd_qlogb
8
dec_mpd_qmax
10
dec_mpd_qmax_mag
8
dec_mpd_qmin
8
dec_mpd_qmin_mag
8
dec_mpd_qnext_minus
13
dec_mpd_qnext_plus
14
dec_mpd_qnext_toward
4
dec_mpd_qor
8
dec_mpd_qquantize
7187
dec_mpd_qreduce
7
dec_mpd_qrem_near
8
dec_mpd_qrotate
9
dec_mpd_qscaleb
8
dec_mpd_qshift
8
dec_mpd_qsqrt
51
dec_mpd_qxor
6
dec_mpd_radix
5
dec_mpd_same_quantum
4
dec_mpd_to_eng
6
dec_new
196679
dec_real
1
dec_reduce
18
dec_replace_fillchar
4
dec_repr
4742
dec_richcompare
20627
dec_sizeof
3
dec_str
59944
dec_strdup
40
dec_traphandler
0
dec_trunc
500
dectuple_as_str
53
dict_as_flags
24
dict_get_item_string
102
dotsep_as_utf8
2
exception_as_flag
1485377
flags_as_dict
1
flags_as_exception
166
flags_as_list
166
format_spec_z_search
217
getround
17452
incr_false
608331
incr_true
118311
init_basic_context
50
init_current_context
24
init_extended_context
50
is_space
263251
list_as_flags
31123
multiply_by_denominator
73
nm_dec_as_long
9564
nm_mpd_qabs
520
nm_mpd_qadd
232
nm_mpd_qdiv
15130
nm_mpd_qdivint
10
nm_mpd_qdivmod
15
nm_mpd_qminus
59
nm_mpd_qmul
23934
nm_mpd_qplus
6
nm_mpd_qpow
88
nm_mpd_qrem
9
nm_mpd_qsub
202
nm_nonzero
8
numerator_as_decimal
100
numeric_as_ascii
135567
runtime_error_int
0
runtime_error_ptr
0
sequence_as_tuple
94
signaldict_copy
1
signaldict_getitem
723325
signaldict_init
32778
signaldict_iter
15597
signaldict_len
1
signaldict_repr
0
signaldict_richcompare
33
signaldict_setitem
637614
signals_as_list
15564
type_error_int
19
unicode_fromascii
63893
value_error_int
44
Generated by:
LCOV version 1.14