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

Generated by: LCOV version 1.14