Leosac  0.8.0
Open Source Access Control
Leosac::Test::WiegandReaderTest Class Reference
+ Inheritance diagram for Leosac::Test::WiegandReaderTest:
+ Collaboration diagram for Leosac::Test::WiegandReaderTest:

Public Member Functions

 WiegandReaderTest ()
 
 ~WiegandReaderTest ()
 
- Public Member Functions inherited from Leosac::Test::Helper::TestHelper
 TestHelper ()
 
virtual ~TestHelper ()
 
virtual void SetUp () override final
 We need this 2-step initialization to prevent calling virtual method (run_module) in constructor. More...
 

Public Attributes

FakeGPIO high_
 
FakeGPIO low_
 
- Public Attributes inherited from Leosac::Test::Helper::TestHelper
zmqpp::context ctx_
 A context for the test case. More...
 
MessageBus bus_
 A BUS identical to the one spawned by core. More...
 
zmqpp::socket bus_sub_
 A SUB socket connected to the previous bus. More...
 
zmqpp::socket bus_push_
 A PUSH socket to write on the bus. More...
 
std::unique_ptr< zmqpp::actor > module_actor_
 An actor, to run the module code the same way it would be run by the core. More...
 

Private Member Functions

virtual bool run_module (zmqpp::socket *pipe) override
 Called in the module's actor's thread. More...
 

Detailed Description

Definition at line 34 of file WiegandReader.cpp.

Constructor & Destructor Documentation

◆ WiegandReaderTest()

Leosac::Test::WiegandReaderTest::WiegandReaderTest ( )
inline

Definition at line 55 of file WiegandReader.cpp.

◆ ~WiegandReaderTest()

Leosac::Test::WiegandReaderTest::~WiegandReaderTest ( )
inline

Definition at line 63 of file WiegandReader.cpp.

Member Function Documentation

◆ run_module()

virtual bool Leosac::Test::WiegandReaderTest::run_module ( zmqpp::socket *  pipe)
inlineoverrideprivatevirtual

Called in the module's actor's thread.

Override this: Construct configuration for the module then run_test_module() with appropriate parameters.

Implements Leosac::Test::Helper::TestHelper.

Definition at line 37 of file WiegandReader.cpp.

Member Data Documentation

◆ high_

FakeGPIO Leosac::Test::WiegandReaderTest::high_

Definition at line 67 of file WiegandReader.cpp.

◆ low_

FakeGPIO Leosac::Test::WiegandReaderTest::low_

Definition at line 68 of file WiegandReader.cpp.


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