container: root: test: utility: add tests for common

This commit is contained in:
2025-11-17 20:35:52 -08:00
parent 0d4b293b2d
commit cf68f02d2f
2 changed files with 169 additions and 0 deletions

View File

@@ -25,9 +25,11 @@
#include <cstdint>
#include <limits>
#include <memory>
#include <type_traits>
#include <vector>
#include "../../common/utility.hh"
#include "../../src/utility.hh"
//! \namespace dfi
@@ -93,6 +95,17 @@ struct ByteFixture
t_byte byte;
};
//! \brief Common fixture
//! \note Not a 'common' fixture but rather a fixture for 'common'
//! \since docker-finance 1.1.0
struct CommonFixture
{
protected:
using EErrorCode = ::TInterpreter::EErrorCode;
std::unique_ptr<EErrorCode> ecode;
CommonFixture() { ecode = std::make_unique<EErrorCode>(); }
};
} // namespace tests
} // namespace dfi