LCOV - code coverage report
Current view: top level - Objects - unicodeobject.c (source / functions) Hit Total Coverage
Test: CPython 3.12 LCOV report [commit acb105a7c1f] Lines: 5528 6637 83.3 %
Date: 2022-07-20 13:12:14 Functions: 289 314 92.0 %
Branches: 3455 4494 76.9 %

Function Name Sort by function name Hit count Sort by hit count
EncodingMap_size_impl 0
PyInit__string 717
PyUnicode_Append 3940822
PyUnicode_AppendAndDel 85004
PyUnicode_AsASCIIString 749593
PyUnicode_AsCharmapString 0
PyUnicode_AsDecodedObject 0
PyUnicode_AsDecodedUnicode 0
PyUnicode_AsEncodedObject 0
PyUnicode_AsEncodedString 5298134
PyUnicode_AsEncodedUnicode 0
PyUnicode_AsLatin1String 42
PyUnicode_AsRawUnicodeEscapeString 11252
PyUnicode_AsUCS4 103076
PyUnicode_AsUCS4Copy 46
PyUnicode_AsUTF16String 0
PyUnicode_AsUTF32String 0
PyUnicode_AsUTF8 1667951
PyUnicode_AsUTF8AndSize 25515468
PyUnicode_AsUTF8String 42250
PyUnicode_AsUnicodeEscapeString 3762
PyUnicode_AsWideChar 20079
PyUnicode_AsWideCharString 419907
PyUnicode_BuildEncodingMap 217
PyUnicode_Compare 6111464
PyUnicode_CompareWithASCIIString 14587106
PyUnicode_Concat 28756927
PyUnicode_Contains 29584915
PyUnicode_CopyCharacters 21493
PyUnicode_Count 0
PyUnicode_Decode 8227874
PyUnicode_DecodeASCII 798108
PyUnicode_DecodeCharmap 23785
PyUnicode_DecodeFSDefault 111117
PyUnicode_DecodeFSDefaultAndSize 2458127
PyUnicode_DecodeLatin1 4905544
PyUnicode_DecodeLocale 377760
PyUnicode_DecodeLocaleAndSize 0
PyUnicode_DecodeRawUnicodeEscape 41939
PyUnicode_DecodeUTF16 1065
PyUnicode_DecodeUTF16Stateful 33856
PyUnicode_DecodeUTF32 34
PyUnicode_DecodeUTF32Stateful 57996
PyUnicode_DecodeUTF7 0
PyUnicode_DecodeUTF7Stateful 5662
PyUnicode_DecodeUTF8 34713031
PyUnicode_DecodeUTF8Stateful 90327442
PyUnicode_DecodeUnicodeEscape 0
PyUnicode_EncodeFSDefault 2133877
PyUnicode_EncodeLocale 1401
PyUnicode_FSConverter 2157342
PyUnicode_FSDecoder 30319
PyUnicode_Fill 7650
PyUnicode_Find 119
PyUnicode_FindChar 5150352
PyUnicode_Format 1226230
PyUnicode_FromEncodedObject 8302555
PyUnicode_FromFormat 563601
PyUnicode_FromFormatV 7330931
PyUnicode_FromKindAndData 45582217
PyUnicode_FromObject 1219618
PyUnicode_FromOrdinal 12696835
PyUnicode_FromString 41735676
PyUnicode_FromStringAndSize 4968821
PyUnicode_FromWideChar 1787547
PyUnicode_GetDefaultEncoding 2094
PyUnicode_GetLength 43871
PyUnicode_GetSize 0
PyUnicode_InternFromString 10898447
PyUnicode_InternImmortal 0
PyUnicode_InternInPlace 264603632
PyUnicode_IsIdentifier 6111849
PyUnicode_Join 6197517
PyUnicode_New 233123496
PyUnicode_Partition 178473
PyUnicode_RPartition 1608713
PyUnicode_RSplit 0
PyUnicode_ReadChar 21
PyUnicode_Replace 356
PyUnicode_Resize 0
PyUnicode_RichCompare 36542452
PyUnicode_Split 197563
PyUnicode_Splitlines 329403
PyUnicode_Substring 27794506
PyUnicode_Tailmatch 356
PyUnicode_Translate 0
PyUnicode_WriteChar 12
_PyStaticUnicode_Dealloc 7578170
_PyUnicodeWriter_Dealloc 10230
_PyUnicodeWriter_Finish 14301495
_PyUnicodeWriter_Init 13847415
_PyUnicodeWriter_InitWithBuffer 498098
_PyUnicodeWriter_PrepareInternal 11128970
_PyUnicodeWriter_PrepareKindInternal 7926
_PyUnicodeWriter_Update 15262806
_PyUnicodeWriter_WriteASCIIString 26970248
_PyUnicodeWriter_WriteChar 1614710
_PyUnicodeWriter_WriteCharInline 2585746
_PyUnicodeWriter_WriteLatin1String 3
_PyUnicodeWriter_WriteStr 18240355
_PyUnicodeWriter_WriteSubstring 2449847
_PyUnicode_AsASCIIString 2168689
_PyUnicode_AsLatin1String 25157
_PyUnicode_AsUTF8String 2824690
_PyUnicode_CheckConsistency 0
_PyUnicode_ClearInterned 3125
_PyUnicode_Copy 61705
_PyUnicode_DecodeRawUnicodeEscapeStateful 82698
_PyUnicode_DecodeUnicodeEscapeInternal 246092
_PyUnicode_DecodeUnicodeEscapeStateful 6315
_PyUnicode_EQ 1192617
_PyUnicode_EncodeCharmap 4689
_PyUnicode_EncodeUTF16 5836
_PyUnicode_EncodeUTF32 2457
_PyUnicode_EncodeUTF7 1907
_PyUnicode_Equal 63867734
_PyUnicode_EqualToASCIIId 0
_PyUnicode_EqualToASCIIString 17966675
_PyUnicode_ExactDealloc 4049312
_PyUnicode_FastCopyCharacters 114891700
_PyUnicode_FastFill 14217
_PyUnicode_FindMaxChar 1035405
_PyUnicode_Fini 3125
_PyUnicode_FiniEncodings 3125
_PyUnicode_FiniTypes 3125
_PyUnicode_FormatLong 550422
_PyUnicode_FromASCII 31903300
_PyUnicode_FromId 148991
_PyUnicode_FromUCS1 50066464
_PyUnicode_FromUCS2 316186
_PyUnicode_FromUCS4 405853
_PyUnicode_InitEncodings 3134
_PyUnicode_InitGlobalObjects 3138
_PyUnicode_InitState 3138
_PyUnicode_InitTypes 3138
_PyUnicode_InsertThousandsGrouping 949468
_PyUnicode_JoinArray 8474252
_PyUnicode_ScanIdentifier 6112063
_PyUnicode_TransformDecimalAndSpaceToASCII 1265303
_PyUnicode_TranslateCharmap 98282
_PyUnicode_WideCharString_Converter 0
_PyUnicode_WideCharString_Opt_Converter 0
_PyUnicode_XStrip 5538473
_Py_DecodeUTF8Ex 25387
_Py_DecodeUTF8_surrogateescape 3193
_Py_EncodeUTF8Ex 14851
_Py_GetErrorHandler 403545
_Py_normalize_encoding 15010024
_copy_characters 114913186
any_find_slice 2293509
anylib_count 2357978
anylib_find 559255
as_ucs4 103122
ascii_decode 78892378
ascii_upper_or_lower 803957
backslashreplace 8395
case_operation 11186284
charmap_decode_mapping 45
charmap_decode_string 22831
charmap_encoding_error 129
charmapencode_lookup 28125
charmapencode_output 236558
charmapencode_resize 74
charmaptranslate_lookup 340819
charmaptranslate_output 169331
config_get_codec_name 6268
convert_uc 63
do_argstrip 6733474
do_capitalize 24184
do_casefold 6
do_lower 3354672
do_strip 1195001
do_swapcase 29
do_title 4458340
do_upper 3349053
do_upper_or_lower 6703725
encode_wstr_utf8 12536
encoding_map_lookup 220485
ensure_unicode 66698811
find_maxchar_surrogates 1766722
findchar 34756728
formatchar 2255
formatfloat 44192
get_error_handler_wide 1102304
get_latin1_char 79614945
handle_capital_sigma 24
init_fs_codec 3134
init_fs_encoding 3134
init_stdio_encoding 3134
kind_maxchar_limit 9
lower_ucs4 11426902
mainformatlong 1061633
make_bloom_mask 5541440
make_decode_exception 7248
make_encode_exception 8148
make_translate_exception 0
pad 68205
parse_args_finds_unicode 2829838
raise_encode_exception 1213
replace 3276629
replace_1char_inplace 47239
resize_compact 11572188
resize_copy 0
resize_inplace 0
rsplit 3830
split 2415421
tailmatch 11014740
unicode___format___impl 7931
unicode_adjust_maxchar 141
unicode_ascii_iter_next 4972673
unicode_askind 34651
unicode_capitalize_impl 24187
unicode_casefold_impl 700
unicode_center_impl 7866
unicode_char 68598047
unicode_check_encoding_errors 13606943
unicode_check_modifiable 29148
unicode_clear_identifiers 3125
unicode_compare 2412302
unicode_compare_eq 69356440
unicode_copy_as_widechar 429970
unicode_count 536426
unicode_dealloc 231652374
unicode_decode_call_errorhandler_writer 7249
unicode_decode_locale 1400963
unicode_decode_utf8 91756904
unicode_encode_call_errorhandler 6936
unicode_encode_impl 5176736
unicode_encode_locale 77368
unicode_encode_ucs1 6099
unicode_encode_utf8 4879167
unicode_endswith 1827148
unicode_expandtabs_impl 52043
unicode_fast_translate 97336
unicode_fast_translate_lookup 171483
unicode_fill 421019
unicode_fill_utf8 4537
unicode_find 870411
unicode_format_arg 1793787
unicode_format_arg_format 1789333
unicode_format_arg_output 1251146
unicode_format_arg_parse 1789378
unicode_format_getnextarg 1814785
unicode_fromformat_arg 13361517
unicode_fromformat_write_cstr 4908654
unicode_fromformat_write_str 13184839
unicode_get_empty 39473325
unicode_get_widechar_size 439986
unicode_getitem 55444778
unicode_getnewargs 121
unicode_hash 182512643
unicode_index 23685
unicode_isalnum_impl 2332685
unicode_isalpha_impl 2272295
unicode_isascii_impl 102012
unicode_isdecimal_impl 2228410
unicode_isdigit_impl 2250464
unicode_isidentifier_impl 5969044
unicode_islower_impl 2233428
unicode_isnumeric_impl 2228253
unicode_isprintable_impl 1422395
unicode_isspace_impl 3418282
unicode_istitle_impl 2228271
unicode_isupper_impl 3627593
unicode_iter 995404
unicode_join 6094174
unicode_kind_name 12
unicode_length 24042227
unicode_ljust_impl 25593
unicode_lower_impl 4095028
unicode_lstrip_impl 230149
unicode_maketrans_impl 138
unicode_mod 1226230
unicode_modifiable 5038400
unicode_new_empty 5926674
unicode_new_impl 1199234
unicode_partition 178473
unicode_removeprefix_impl 30314
unicode_removesuffix_impl 28
unicode_repeat 1644695
unicode_replace_impl 3276273
unicode_repr 645309
unicode_resize 1404430
unicode_result 12619516
unicode_result_unchanged 17767903
unicode_rfind 1399118
unicode_rindex 198
unicode_rjust_impl 48168
unicode_rpartition 1608713
unicode_rsplit_impl 3830
unicode_rstrip_impl 5373172
unicode_sizeof_impl 12
unicode_split_impl 2217863
unicode_splitlines_impl 287350
unicode_startswith 8983485
unicode_static_dealloc 8378170
unicode_str 61346
unicode_strip_impl 1130153
unicode_subscript 80298900
unicode_subtype_new 128611
unicode_swapcase_impl 29
unicode_title_impl 4458340
unicode_translate 98282
unicode_translate_call_errorhandler 0
unicode_upper_impl 3411960
unicode_write_cstr 3
unicode_zfill_impl 176
unicodeiter_dealloc 995404
unicodeiter_len 12055
unicodeiter_next 392008
unicodeiter_reduce 438
unicodeiter_setstate 564
unicodeiter_traverse 1024
xmlcharrefreplace 1242

Generated by: LCOV version 1.14