Coverage Report

Created: 2019-06-19 13:33

/src/systemd/src/basic/glob-util.h
Line
Count
Source (jump to first uncovered line)
1
/* SPDX-License-Identifier: LGPL-2.1+ */
2
#pragma once
3
4
#include <glob.h>
5
#include <stdbool.h>
6
#include <string.h>
7
8
#include "macro.h"
9
#include "string-util.h"
10
11
/* Note: this function modifies pglob to set various functions. */
12
int safe_glob(const char *path, int flags, glob_t *pglob);
13
14
int glob_exists(const char *path);
15
int glob_extend(char ***strv, const char *path);
16
17
0
#define _cleanup_globfree_ _cleanup_(globfree)
18
19
47.2k
_pure_ static inline bool string_is_glob(const char *p) {
20
47.2k
        /* Check if a string contains any glob patterns. */
21
47.2k
        return !!strpbrk(p, GLOB_CHARS);
22
47.2k
}
Unexecuted instantiation: path.c:string_is_glob
Unexecuted instantiation: execute.c:string_is_glob
udev-rules.c:string_is_glob
Line
Count
Source
19
47.2k
_pure_ static inline bool string_is_glob(const char *p) {
20
47.2k
        /* Check if a string contains any glob patterns. */
21
47.2k
        return !!strpbrk(p, GLOB_CHARS);
22
47.2k
}
Unexecuted instantiation: condition.c:string_is_glob
Unexecuted instantiation: glob-util.c:string_is_glob
Unexecuted instantiation: path-util.c:string_is_glob
Unexecuted instantiation: unit-name.c:string_is_glob