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

Namespaces

namespace  crash_report
namespace  runtime
namespace  type_clash

Classes

class  TestWriter
class  TestReader
class  BufferedTestReader
class  ProcessTerminatorImpl
 Terminates each process where it is included (via the kernel API) when it detects that all StatefulObjects in the process are 'finished'. More...
class  StateFulObjectImpl
 Holds a connection state. More...
class  PublisherImpl
 Performs actions in the integration test. These normally include creating, erasing and modifying objects. More...
class  ListenerImpl
 Reacts to action performs by the publisher and compares the result to the test expectation. These reactions normally involve creating subscriptions for objects, installing callbacks for property changes, etc. More...
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)
template<typename T>
bool allObjectsWithState (const std::list< T * > &objects, const ConnectionState state)

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

◆ allObjectsWithState()

template<typename T>
bool sen::test::allObjectsWithState ( const std::list< T * > & objects,
const ConnectionState state )
inlinenodiscard