Files
clio/tests/common/migration/TestMigrators.hpp
2026-06-19 17:23:03 +01:00

41 lines
1.2 KiB
C++

#pragma once
#include "util/MockMigrationBackend.hpp"
#include "util/config/ObjectView.hpp"
#include <memory>
struct SimpleTestMigrator {
using Backend = MockMigrationBackend;
static constexpr auto kName = "SimpleTestMigrator";
static constexpr auto kDescription = "The migrator for version 0 -> 1";
static constexpr auto kCanBlockClio = true;
static void
runMigration(std::shared_ptr<MockMigrationBackend>, util::config::ObjectView const&)
{
}
};
struct SimpleTestMigrator2 {
using Backend = MockMigrationBackend;
static constexpr auto kName = "SimpleTestMigrator2";
static constexpr auto kDescription = "The migrator for version 1 -> 2";
static void
runMigration(std::shared_ptr<MockMigrationBackend>, util::config::ObjectView const&)
{
}
};
struct SimpleTestMigrator3 {
using Backend = MockMigrationBackend;
static constexpr auto kName = "SimpleTestMigrator3";
static constexpr auto kDescription = "The migrator for version 3 -> 4";
static constexpr auto kCanBlockClio = false;
static void
runMigration(std::shared_ptr<MockMigrationBackend>, util::config::ObjectView const&)
{
}
};