OTest2
A C++ testing framework
|
Go to the documentation of this file.
20 #ifndef OTest2__LIB_TESTMARKHASH_H_
21 #define OTest2__LIB_TESTMARKHASH_H_
74 const std::uint8_t* data_,
107 const char* type_name_,
108 const std::uint8_t* data_,
118 const char* type_name_,
119 const std::string& value_);
121 template<
typename Type_>
123 const char* type_name_,
128 reinterpret_cast<const std::uint8_t*
>(&value_),
134 const char* type_name_,
135 const std::string& value_);
void addString(const char *string_)
Append a string literal.
void addTerminator()
Append a terminataor character into the hash.
TestMarkHashCode getHashCode() const noexcept
Get currently computed hash code.
TestMarkHash & operator=(const TestMarkHash &)=delete
std::uint64_t TestMarkHashCode
static TestMarkHashCode hashBasicType(const char *type_name_, Type_ value_)
A simple generator of a testmark hash.
void addData(const std::uint8_t *data_, std::size_t size_)
Append piece of data.
void addBasicType(const char *type_name_, const std::uint8_t *data_, std::size_t size_)
Add hash for a value of a basic type.
void addHashCode(TestMarkHashCode code_)
Append a hash code of another testmark.