mirror of
https://github.com/XRPLF/clio.git
synced 2026-04-29 15:37:53 +00:00
22 lines
528 B
C++
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>);
|
|
}
|