container: root: test: unit: type: add PluggableSpace entrypoint

This commit is contained in:
2026-01-08 14:30:29 -08:00
parent 1adb305417
commit 572ee3cf7d

View File

@@ -1,6 +1,6 @@
// docker-finance | modern accounting for the power-user
//
// Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
// Copyright (C) 2021-2026 Aaron Fiore (Founder, Evergreen Crypto LLC)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -274,27 +274,32 @@ struct PluggableSpaceType : public ::testing::Test,
public ::dfi::common::type::PluggableSpace
{
PluggableSpaceType()
: ::dfi::common::type::PluggableSpace({"outer::space", "inner::space"})
: ::dfi::common::type::PluggableSpace(
{"outer::space", "inner::space", "class_C"})
{
}
const std::string kOuter{"outer::space"};
const std::string kInner{"inner::space"};
const std::string kEntry{"class_C"};
};
TEST_F(PluggableSpaceType, Accessors)
{
ASSERT_EQ(outer(), kOuter);
ASSERT_EQ(inner(), kInner);
ASSERT_EQ(entry(), kEntry);
}
TEST_F(PluggableSpaceType, Mutators)
{
ASSERT_NO_THROW(
outer(kOuter + "::more_outer").inner(kInner + "::more_inner"));
ASSERT_NO_THROW(outer(kOuter + "::more_outer")
.inner(kInner + "::more_inner")
.entry(kEntry + "_"));
ASSERT_EQ(outer(), kOuter + "::more_outer");
ASSERT_EQ(inner(), kInner + "::more_inner");
ASSERT_EQ(entry(), kEntry + "_");
}
//! \brief PluggableArgs type fixture