Universally unique identifier tests.
Definition in file test_uuid.c.
Definition at line 33 of file test_uuid.c.
34{
40
41 switch (cmd) {
44 info->category =
"/main/uuid/";
45 info->summary =
"UUID unit test";
47 "This tests basic UUID operations to ensure they work properly";
50 break;
51 }
52
53
58 }
60
61
63 if (!uuid1) {
66 }
68
69
71 if (!uuid1) {
74 }
75
76
80 }
81
82
84
88 }
89
91
92
94 if (!uuid2) {
97 }
98
99
103 }
104
105
107 if (!uuid3) {
110 }
111
112
116 }
117
121 }
122
123
125
129 }
130
132
137 return res;
138}
#define ast_test_status_update(a, b, c...)
int ast_uuid_compare(struct ast_uuid *left, struct ast_uuid *right)
Compare two UUIDs.
struct ast_uuid * ast_uuid_generate(void)
Generate a UUID.
void ast_uuid_clear(struct ast_uuid *uuid)
Clear a UUID by setting it to be a nil UUID (all 0s)
struct ast_uuid * ast_str_to_uuid(char *str)
Convert a string to a UUID.
struct ast_uuid * ast_uuid_copy(struct ast_uuid *src)
Make a copy of a UUID.
int ast_uuid_is_nil(struct ast_uuid *uuid)
Check if a UUID is a nil UUID (all 0s)
char * ast_uuid_generate_str(char *buf, size_t size)
Generate a UUID string.
char * ast_uuid_to_str(struct ast_uuid *uuid, char *buf, size_t size)
Convert a UUID to a string.
References ast_free, ast_str_to_uuid(), AST_TEST_FAIL, AST_TEST_NOT_RUN, AST_TEST_PASS, ast_test_status_update, ast_uuid_clear(), ast_uuid_compare(), ast_uuid_copy(), ast_uuid_generate(), ast_uuid_generate_str(), ast_uuid_is_nil(), AST_UUID_STR_LEN, ast_uuid_to_str(), end, sip_to_pjsip::info(), NULL, TEST_EXECUTE, and TEST_INIT.