summaryrefslogtreecommitdiffstats
path: root/t/test-common.h
blob: dcf6f6407e1df373b0771f1eadb5731c156acfb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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