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 (mongo::BSONObj obj, mongo::BSONObj exp)
 Function for testing if a document 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 71 of file robot_memory_test.h.

Member Function Documentation

◆ contains_pairs()

testing::AssertionResult RobotMemoryTest::contains_pairs ( mongo::BSONObj  obj,
mongo::BSONObj  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 246 of file robot_memory_test.cpp.

◆ SetUp()

void RobotMemoryTest::SetUp ( )
protectedvirtual

Setup for each test.

Definition at line 41 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 78 of file robot_memory_test.h.

◆ robot_memory

RobotMemory* RobotMemoryTest::robot_memory
protected

Access to Robot Memory.

Definition at line 76 of file robot_memory_test.h.


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