forked from EvergreenCrypto/docker-finance
container: root: test: utility: add tests for common
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user