Fawkes API  Fawkes Development Version
RobotMemoryTest Class Reference

Class for Tests of the RobotMemory. More...

#include <robot_memory_test.h>

Inheritance diagram for RobotMemoryTest:

Protected Member Functions

virtual void SetUp ()
 Setup for each test. More...
 
::testing::AssertionResult contains_pairs (const bsoncxx::document::view_or_value &obj, const bsoncxx::document::view_or_value &exp)
 Function for testing if a document contains all key-value pairs of another document. More...
 
::testing::AssertionResult contains_pairs (mongocxx::cursor &cursor, const bsoncxx::document::view_or_value &exp)
 Function for testing if a cursor to a query results contains all key-value pairs of another document. More...
 

Protected Attributes

RobotMemoryrobot_memory
 Access to Robot Memory. More...
 
fawkes::BlackBoardblackboard
 Access to blackboard. More...
 

Detailed Description

Class for Tests of the RobotMemory.

Definition at line 73 of file robot_memory_test.h.

Member Function Documentation

◆ contains_pairs() [1/2]

testing::AssertionResult RobotMemoryTest::contains_pairs ( const bsoncxx::document::view_or_value &  obj,
const bsoncxx::document::view_or_value &  exp 
)
protected

Function for testing if a document contains all key-value pairs of another document.

Parameters
objDocument that should be tested
expDocument containing all expected key-value pairs
Returns
Assertion Result

Definition at line 257 of file robot_memory_test.cpp.

◆ contains_pairs() [2/2]

testing::AssertionResult RobotMemoryTest::contains_pairs ( mongocxx::cursor &  cursor,
const bsoncxx::document::view_or_value &  exp 
)
protected

Function for testing if a cursor to a query results contains all key-value pairs of another document.

Parameters
cursorCursor to a query result that should be tested
expDocument containing all expected key-value pairs
Returns
Assertion Result

Definition at line 279 of file robot_memory_test.cpp.

◆ SetUp()

void RobotMemoryTest::SetUp ( )
protectedvirtual

Setup for each test.

Definition at line 43 of file robot_memory_test.cpp.

References RobotMemoryTestEnvironment::blackboard, and RobotMemoryTestEnvironment::robot_memory.

Member Data Documentation

◆ blackboard

fawkes::BlackBoard* RobotMemoryTest::blackboard
protected

Access to blackboard.

Definition at line 80 of file robot_memory_test.h.

◆ robot_memory

RobotMemory* RobotMemoryTest::robot_memory
protected

Access to Robot Memory.

Definition at line 78 of file robot_memory_test.h.


The documentation for this class was generated from the following files: