Sen API
Sen Libraries
Loading...
Searching...
No Matches
sen::test Namespace Reference

Namespaces

namespace  runtime

Classes

class  TestWriter
class  TestReader
class  BufferedTestReader
class  TestClassImpl
class  TesterImpl

Functions

template<typename T>
std::vector< uint8_t > valueToBytes (const T data)
template<typename T>
bool eq (T a, T b)
template<typename PropType>
bool checkProp (std::promise< TestResult > &promise, const std::string &propName, sen::MaybeRef< PropType > value, sen::MaybeRef< PropType > expectation)
bool checkMember (std::promise< TestResult > &promise, const std::string &memberName, bool isOk)

Function Documentation

◆ valueToBytes()

template<typename T>
std::vector< uint8_t > sen::test::valueToBytes ( const T data)

◆ eq()

template<typename T>
bool sen::test::eq ( T a,
T b )
inlinenodiscard

◆ checkProp()

template<typename PropType>
bool sen::test::checkProp ( std::promise< TestResult > & promise,
const std::string & propName,
sen::MaybeRef< PropType > value,
sen::MaybeRef< PropType > expectation )
inlinenodiscard

◆ checkMember()

bool sen::test::checkMember ( std::promise< TestResult > & promise,
const std::string & memberName,
bool isOk )
inlinenodiscard