Motr  M0
uuid.c File Reference
#include "lib/string.h"
#include "lib/uuid.h"
#include "lib/errno.h"
#include "ut/ut.h"
Include dependency graph for uuid.c:

Go to the source code of this file.

Functions

static bool test_identity_op (const char *str)
 
void m0_test_lib_uuid (void)
 

Variables

static char * nil_uuid = "00000000-0000-0000-0000-000000000000"
 
static char * uuid1 = "abcdef01-2345-6789-abcd-ef0123456789"
 
static char * uuid2 = "98765432-10AB-CDEF-FEDC-BA0123456789"
 
static char * uuid3 = "9876543210ABCDEFFEDCBA0123456789"
 
static char * bad1 = "bad1"
 
static char * bad_uuids_len_ok []
 
static char * bad_uuids_short []
 
static char * bad_uuids_long []
 
struct m0_uint128 uuid [1000]
 

Function Documentation

◆ m0_test_lib_uuid()

void m0_test_lib_uuid ( void  )

Definition at line 74 of file uuid.c.

Here is the call graph for this function:

◆ test_identity_op()

static bool test_identity_op ( const char *  str)
static

Definition at line 56 of file uuid.c.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ bad1

char* bad1 = "bad1"
static

Definition at line 32 of file uuid.c.

◆ bad_uuids_len_ok

char* bad_uuids_len_ok[]
static
Initial value:
= {
"abcdef0101-2345-6789-abcd-0123456789",
"0123456-1234-12345-1234-123456789abc",
"X176543-10ab-0Xdef-fedc-0xa123456789",
"9876543M-10ab-cdef-fedc-ba0123456789",
"987650x4-10ab-cdef-fedc-ba0123456789",
"0x765432-10ab-0Xde-fedc-0xa123456789",
}

Definition at line 33 of file uuid.c.

◆ bad_uuids_long

char* bad_uuids_long[]
static
Initial value:
= {
"abcdef012-2345-6789-abcd-ef0123456789",
"abcdef01-23456-6789-abcd-ef0123456789",
"abcdef01-2345-6789a-abcd-ef0123456789",
"abcdef01-2345-6789-abcde-ef0123456789",
"abcdef01-2345-6789-abcd-ef0123456789a",
}

Definition at line 48 of file uuid.c.

◆ bad_uuids_short

char* bad_uuids_short[]
static
Initial value:
= {
"abcdef1-2345-6789-abcd-ef0123456789",
"abcdef01-234-6789-abcd-ef0123456789",
"abcdef01-2345-678-abcd-ef0123456789",
"abcdef01-2345-6789-abc-ef0123456789",
"abcdef01-2345-6789-abcd-ef012345678",
}

Definition at line 41 of file uuid.c.

◆ nil_uuid

char* nil_uuid = "00000000-0000-0000-0000-000000000000"
static

Definition at line 28 of file uuid.c.

◆ uuid

struct m0_uint128 uuid[1000]

Definition at line 73 of file uuid.c.

◆ uuid1

char* uuid1 = "abcdef01-2345-6789-abcd-ef0123456789"
static

Definition at line 29 of file uuid.c.

◆ uuid2

char* uuid2 = "98765432-10AB-CDEF-FEDC-BA0123456789"
static

Definition at line 30 of file uuid.c.

◆ uuid3

char* uuid3 = "9876543210ABCDEFFEDCBA0123456789"
static

Definition at line 31 of file uuid.c.