xo-gc: utest: + MutationLogStore.test.cpp
This commit is contained in:
parent
b593e43375
commit
fade487b1e
2 changed files with 54 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ set(UTEST_SRCS
|
|||
Collector.test.cpp
|
||||
X1Collector.test.cpp
|
||||
DX1CollectorIterator.test.cpp
|
||||
MutationLogStore.test.cpp
|
||||
GCObjectStore.test.cpp
|
||||
Object2.test.cpp
|
||||
|
||||
|
|
|
|||
53
utest/MutationLogStore.test.cpp
Normal file
53
utest/MutationLogStore.test.cpp
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
/** @file MutationLogStore.test.cpp
|
||||
*
|
||||
* @author Roland Conybeare, Apr 2026
|
||||
**/
|
||||
|
||||
#include <xo/gc/MutationLogStore.hpp>
|
||||
#include <xo/indentlog/scope.hpp>
|
||||
#include <xo/randomgen/random_seed.hpp>
|
||||
#include <catch2/catch.hpp>
|
||||
|
||||
namespace ut {
|
||||
using xo::rng::random_seed;
|
||||
using xo::xtag;
|
||||
using xo::scope;
|
||||
|
||||
namespace {
|
||||
|
||||
struct Testcase {
|
||||
};
|
||||
|
||||
static std::vector<Testcase> s_testcase_v = {
|
||||
|
||||
};
|
||||
|
||||
class MlsFixture {
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE("MutationLogStore-1", "[MutationLogStore]")
|
||||
{
|
||||
constexpr bool c_debug_flag = true;
|
||||
scope log0(XO_DEBUG(c_debug_flag), "MutationLogStore test");
|
||||
|
||||
std::uint64_t seed = 7988747704879432247ul;
|
||||
//random_seed(&seed);
|
||||
log0 && log0(xtag("seed", seed));
|
||||
|
||||
for (size_t i_tc = 0, n_tc = s_testcase_v.size(); i_tc < n_tc; ++i_tc) {
|
||||
auto rgen = xoshiro256ss(seed + i_tc);
|
||||
|
||||
const Testcase & tc = s_testcase_v[i_tc];
|
||||
|
||||
scope log1(XO_DEBUG(tc.debug_flag_), "testcase loop", xtag("i_tc", i_tc));
|
||||
|
||||
INFO(tostr(xtag("i_tc", i_tc), xtag("n_tc", n_tc)));
|
||||
|
||||
MlsFixture fixture(tc);
|
||||
}
|
||||
|
||||
}
|
||||
} /*namespace ut*/
|
||||
|
||||
/* end MutationLogStore.test.cpp */
|
||||
Loading…
Add table
Add a link
Reference in a new issue