LCOV - code coverage report
Current view:
top level
-
basic
- util.c
(
source
/ functions)
Hit
Total
Coverage
Test:
systemd test coverage
Lines:
2125
3405
62.4 %
Date:
2015-07-29 18:47:03
Functions:
163
234
69.7 %
Function Name
Hit count
ascii_ellipsize_mem
2
ascii_strlower
2
base32hexchar
76
base32hexmem
14
base64char
33
base64mem
7
bind_remount_recursive
0
block_get_whole_disk
0
cescape
15
cescape_char
5601
chars_intersect
8
chattr_fd
2
chattr_path
0
chmod_and_chown
1
close_all_fds
1
close_many
15687
close_nointr
19269
cmsg_close_all
0
container_get_leader
0
cpu_set_malloc
0
cunescape
595
cunescape_length
595
cunescape_length_with_prefix
595
cunescape_one
91
decchar
2
delete_chars
1
dir_is_empty
17
dirent_ensure_type
7811
dirent_is_file
725
dirent_is_file_with_suffix
3455
dirname_malloc
1
display_is_local
0
do_execute
1
documentation_url_is_valid
68
draw_special_char
61
ellipsize
8
ellipsize_mem
8
endswith
147209
endswith_no_case
0
execute_directories
1
fchmod_and_fchown
0
fchmod_umask
2
fd_cloexec
18
fd_getcrtime
2
fd_getcrtime_at
0
fd_in_set
2
fd_inc_rcvbuf
20
fd_inc_sndbuf
20
fd_is_temporary_fs
0
fd_nonblock
17
fd_setcrtime
18
fd_wait_for_event
7
fd_warn_permissions
370
fflush_and_check
2
fgetxattrat_fake
0
file_in_same_dir
3101
filename_is_valid
120
files_same
2
first_word
10
flush_fd
0
fopen_temporary
7
fork_agent
0
format_bytes
13
free_and_strdup
171
freeze
0
fstab_node_to_udev_node
6
fstype_is_network
0
get_files_in_directory
3
get_group_creds
3
get_home_dir
105
get_mount_flags
0
get_proc_cmdline_key
4
get_shell
0
get_user_creds
18
getlogname_malloc
0
getpeercred
17
getpeersec
17
getusername_malloc
8
gid_to_name
3
glob_exists
7
glob_extend
0
greedy_realloc
137969
greedy_realloc0
11
hexchar
40835
hexdump
9
hexmem
12
hidden_file
13943
hidden_file_allow_backup
15922
http_etag_is_valid
0
http_url_is_valid
67
id128_is_valid
7
in_gid
0
in_group
0
in_initrd
35
init_gettext
0
ioprio_class_from_string
0
ioprio_class_to_string_alloc
0
ip_tos_from_string
0
ip_tos_to_string_alloc
0
is_device_node
0
is_device_path
223
is_dir
140
is_locale_utf8
61
is_main_thread
7327
is_symlink
29
is_temporary_fs
0
kexec_loaded
0
log_facility_unshifted_from_string
3
log_facility_unshifted_to_string_alloc
0
log_level_from_string
22
log_level_to_string_alloc
0
lookup_uid
0
loop_read
30
loop_read_exact
30
loop_write
260
machine_name_is_valid
0
memdup
143
mkfifo_atomic
0
mknod_atomic
0
mkostemp_safe
57
mount_move_root
0
namespace_enter
0
namespace_open
0
nul_length
58
null_or_empty
387
null_or_empty_fd
3
null_or_empty_path
292
nulstr_contains
137
octchar
14
on_ac_power
6
open_tmpfile
4
openpt_in_namespace
0
page_size
76022
parse_boolean
68
parse_crtime
0
parse_mode
16
parse_pid
220
parse_proc_cmdline
1
parse_size
47
parse_uid
131
path_getcrtime
1
path_is_safe
1339
personality_from_string
0
personality_to_string
0
physical_memory
0
pipe_eof
0
plymouth_running
0
proc_cmdline
7
prot_from_flags
1365
ptsname_malloc
1000
read_attr_fd
1
read_attr_path
0
readlink_and_canonicalize
3261
readlink_and_make_absolute
3329
readlink_malloc
3870
readlink_value
435
readlinkat_malloc
3872
rename_noreplace
0
rename_process
0
reset_uid_gid
0
rlimit_from_string
18
rlimit_to_string
18
rmdir_parents
0
running_in_chroot
0
safe_atod
7
safe_atoi
256
safe_atoi16
0
safe_atolli
2
safe_atollu
16072
safe_atou
533
safe_atou16
0
safe_atou8
8
safe_close
28036
safe_close_pair
1030
same_fd
20
sched_policy_from_string
3
sched_policy_to_string_alloc
0
search_and_fopen
6
search_and_fopen_internal
7
search_and_fopen_nulstr
5
setrlimit_closest
0
shall_restore_state
0
shell_maybe_quote
7
sigchld_code_from_string
0
sigchld_code_to_string
0
sigkill_wait
0
socket_from_display
0
sparse_write
5
split
28540
split_pair
6
strappend
1538
strcspn_escaped
568
streq_ptr
148709
strextend
168
string_has_cc
49
string_is_safe
83
string_table_lookup
13471
strip_tab_ansi
4
strjoin
12647
strnappend
1550
strrep
127
strreplace
6
strshorten
8
strstrip
11217
symlink_atomic
0
symlink_idempotent
0
syslog_parse_priority
0
tag_to_udev_node
4
take_password_lock
0
tempfn_random
2
tempfn_random_child
2
tempfn_xxxxxx
9
touch
8
touch_file
14
truncate_nl
20251
uid_to_name
6
umount_recursive
0
unbase32hexchar
132
unbase32hexmem
32
unbase64char
39
unbase64mem
11
undecchar
574
unhexchar
37637
unhexmem
11
unlink_noerrno
2
unoctchar
38
unquote
4
unquote_first_word
350
unquote_first_word_and_warn
175
unquote_many_words
7
update_reboot_param_file
0
xbsearch_r
0
xescape
0
xopendirat
0
Generated by:
LCOV version 1.11