diff options
Diffstat (limited to 't/test-common.h')
-rw-r--r-- | t/test-common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/test-common.h b/t/test-common.h new file mode 100644 index 0000000..dcf6f64 --- /dev/null +++ b/t/test-common.h @@ -0,0 +1,14 @@ +#ifndef UMBERLOG_TEST_COMMON_H +#define UMBERLOG_TEST_COMMON_H 1 + +#include <json.h> + +void verify_value (struct json_object *jo, const char *key, + const char *expected_value); +void verify_value_differs (struct json_object *jo, const char *key, + const char *unexpected_value); +void verify_value_exists (struct json_object *jo, const char *key); +void verify_value_missing (struct json_object *jo, const char *key); + +struct json_object *parse_msg (const char *msg); +#endif |