28 static char *
nil_uuid =
"00000000-0000-0000-0000-000000000000";
29 static char *
uuid1 =
"abcdef01-2345-6789-abcd-ef0123456789";
30 static char *
uuid2 =
"98765432-10AB-CDEF-FEDC-BA0123456789";
31 static char *
uuid3 =
"9876543210ABCDEFFEDCBA0123456789";
32 static char *
bad1 =
"bad1";
34 "abcdef0101-2345-6789-abcd-0123456789",
35 "0123456-1234-12345-1234-123456789abc",
36 "X176543-10ab-0Xdef-fedc-0xa123456789",
37 "9876543M-10ab-cdef-fedc-ba0123456789",
38 "987650x4-10ab-cdef-fedc-ba0123456789",
39 "0x765432-10ab-0Xde-fedc-0xa123456789",
42 "abcdef1-2345-6789-abcd-ef0123456789",
43 "abcdef01-234-6789-abcd-ef0123456789",
44 "abcdef01-2345-678-abcd-ef0123456789",
45 "abcdef01-2345-6789-abc-ef0123456789",
46 "abcdef01-2345-6789-abcd-ef012345678",
49 "abcdef012-2345-6789-abcd-ef0123456789",
50 "abcdef01-23456-6789-abcd-ef0123456789",
51 "abcdef01-2345-6789a-abcd-ef0123456789",
52 "abcdef01-2345-6789-abcde-ef0123456789",
53 "abcdef01-2345-6789-abcd-ef0123456789a",
M0_INTERNAL int m0_uint128_cmp(const struct m0_uint128 *u0, const struct m0_uint128 *u1)
struct m0_uint128 uuid[1000]
M0_INTERNAL void m0_uuid_generate(struct m0_uint128 *u)
static char * bad_uuids_len_ok[]
M0_INTERNAL int m0_uuid_parse(const char *str, struct m0_uint128 *val)
static char * bad_uuids_short[]
M0_INTERNAL void m0_uuid_format(const struct m0_uint128 *val, char *buf, size_t len)
void m0_test_lib_uuid(void)
static bool test_identity_op(const char *str)
static char * bad_uuids_long[]