LCOV - code coverage report
Current view: top level - src/bin/initdb - initdb.c (source / functions) Coverage Total Hit
Test: PostgreSQL 20devel Lines: 81.9 % 1248 1022
Test Date: 2026-11-06 16:15:55 Functions: 96.9 % 64 62
Legend: Lines:     hit not hit
Branches: + taken - not taken # not executed
Branches: 65.1 % 753 490

Function Name Sort by function name Hit count Sort by function hit count
get_su_pwd 0
trapsig 0
usage 1
warn_on_mount_point 1
check_icu_locale_encoding 6
icu_language_tag 7
icu_validate_locale 7
add_stringlist_item 16
get_encoding_id 16
load_plpgsql 60
make_postgres 60
make_template0 60
setup_auth 60
setup_collation 60
setup_depend 60
setup_description 60
setup_privileges 60
setup_schema 60
vacuum_db 60
bootstrap_template1 61
choose_dsm_implementation 61
encodingid_to_string 61
locale_date_order 61
my_strftime 61
set_null_conf 61
setup_config 61
test_config_settings 61
create_xlog_or_symlink 63
create_data_directory 64
find_matching_ts_config 64
initialize_data_directory 64
setup_signals 64
setup_text_search 64
set_info_version 69
setlocales 69
setup_data_file_paths 69
setup_locale_encoding 69
check_need_password 70
get_id 70
setup_bin_paths 70
cleanup_directories_atexit 74
setup_pgdata 74
main 103
popen_check 121
write_version_file 121
pretty_wal_size 122
check_locale_encoding 132
check_authmethod_unspecified 140
check_authmethod_valid 140
test_specific_config_settings 144
escape_quotes_bki 192
setup_run_file 300
writefile 305
check_ok 309
check_locale_name 414
restore_global_locale 475
save_global_locale 475
readfile 605
escape_quotes 707
check_input 759
set_input 759
replace_token 793
guc_value_requires_quotes 1172
replace_guc_value 1172

Generated by: LCOV version 2.0-1