Files
clio/tests/common/migration/TestMigrators.hpp
2026-05-13 12:09:06 +01:00

39 lines
1.1 KiB
C++

#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&)
{
}
};