dte test coverage


Directory: ./
File: src/command/alias.h
Date: 2024-12-21 16:03:22
Exec Total Coverage
Lines: 2 2 100.0%
Functions: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 #ifndef COMMAND_ALIAS_H
2 #define COMMAND_ALIAS_H
3
4 #include "util/hashmap.h"
5 #include "util/macros.h"
6
7 98 static inline const char *find_alias(const HashMap *aliases, const char *name)
8 {
9 98 return hashmap_get(aliases, name);
10 }
11
12 void add_alias(HashMap *aliases, const char *name, const char *value) NONNULL_ARGS;
13 void remove_alias(HashMap *aliases, const char *name) NONNULL_ARGS;
14
15 #endif
16