Files
clio/tests/unit/migration/cassandra/SpecTests.cpp
2026-03-24 15:25:32 +00:00

22 lines
528 B
C++

#include "migration/cassandra/impl/Spec.hpp"
#include <gtest/gtest.h>
#include <cstdint>
#include <tuple>
namespace {
class Empty {};
struct SimpleTestTable {
using Row = std::tuple<std::uint32_t, std::uint32_t>;
static constexpr char const* kPARTITION_KEY = "key";
static constexpr char const* kTABLE_NAME = "test";
};
} // namespace
TEST(MigrationSpec, TableSpec)
{
static_assert(!migration::cassandra::impl::TableSpec<Empty>);
static_assert(migration::cassandra::impl::TableSpec<SimpleTestTable>);
}