21#include <utils/uuid.h>
23#include <catch2/catch.hpp>
27TEST_CASE(
"Generate UUID",
"[uuid]")
33TEST_CASE(
"UUIDs are unique",
"[uuid]")
37 REQUIRE(uuid1 != uuid2);
40TEST_CASE(
"Copy constructor",
"[uuid]")
44 REQUIRE(uuid1 == uuid2);
47TEST_CASE(
"Move constructor",
"[uuid]")
51 Uuid uuid2{std::move(uuid1)};
52 REQUIRE(uuid2.get_string() == uuid_string);
55TEST_CASE(
"Create from string",
"[uuid]")
59 REQUIRE(uuid1 == uuid2);
62TEST_CASE(
"Copy assignment",
"[uuid]")
67 REQUIRE(uuid1 == uuid2);
70TEST_CASE(
"Move assignment",
"[uuid]")
75 uuid2 = std::move(uuid1);
A convenience class for universally unique identifiers (UUIDs).
std::string get_string() const
Get the string representation of the Uuid.