rippled
Public Member Functions | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
ripple::test::multi_runner_parent Class Reference

Manager for children running unit tests. More...

Inheritance diagram for ripple::test::multi_runner_parent:
Inheritance graph
[legend]
Collaboration diagram for ripple::test::multi_runner_parent:
Collaboration graph
[legend]

Public Member Functions

 multi_runner_parent (multi_runner_parent const &)=delete
 
multi_runner_parentoperator= (multi_runner_parent const &)=delete
 
 multi_runner_parent ()
 
 ~multi_runner_parent ()
 
bool any_failed () const
 

Private Types

enum  MessageType
 

Private Member Functions

void message_queue_send (MessageType mt, std::string const &s)
 
std::size_t checkout_test_index ()
 
std::size_t checkout_job_index ()
 
void any_failed (bool v)
 
bool any_failed () const
 
void add (results const &r)
 
void inc_keep_alive_count ()
 
std::size_t get_keep_alive_count ()
 
void print_results (S &s)
 

Private Attributes

std::ostreamos_
 
std::atomic< bool > continue_message_queue_ {true}
 
std::thread message_queue_thread_
 
std::set< std::stringrunning_suites_
 
inner * inner_
 
boost::interprocess::shared_memory_object shared_mem_
 
boost::interprocess::mapped_region region_
 
std::unique_ptr< boost::interprocess::message_queue > message_queue_
 

Static Private Attributes

static constexpr const char * shared_mem_name_
 
static constexpr const char * message_queue_name_
 

Detailed Description

Manager for children running unit tests.

Definition at line 203 of file multi_runner.h.

Member Enumeration Documentation

◆ MessageType

Definition at line 163 of file multi_runner.h.

Constructor & Destructor Documentation

◆ multi_runner_parent() [1/2]

ripple::test::multi_runner_parent::multi_runner_parent ( multi_runner_parent const &  )
delete

◆ multi_runner_parent() [2/2]

ripple::test::multi_runner_parent::multi_runner_parent ( )

Definition at line 360 of file multi_runner.cpp.

◆ ~multi_runner_parent()

ripple::test::multi_runner_parent::~multi_runner_parent ( )

Definition at line 426 of file multi_runner.cpp.

Member Function Documentation

◆ operator=()

multi_runner_parent& ripple::test::multi_runner_parent::operator= ( multi_runner_parent const &  )
delete

◆ any_failed() [1/3]

bool ripple::test::multi_runner_parent::any_failed ( ) const

Definition at line 443 of file multi_runner.cpp.

◆ message_queue_send()

void ripple::test::detail::multi_runner_base< IsParent >::message_queue_send ( MessageType  mt,
std::string const &  s 
)
protectedinherited

Definition at line 341 of file multi_runner.cpp.

◆ checkout_test_index()

std::size_t ripple::test::detail::multi_runner_base< IsParent >::checkout_test_index
inherited

Definition at line 284 of file multi_runner.cpp.

◆ checkout_job_index()

std::size_t ripple::test::detail::multi_runner_base< IsParent >::checkout_job_index
inherited

Definition at line 291 of file multi_runner.cpp.

◆ any_failed() [2/3]

void ripple::test::detail::multi_runner_base< IsParent >::any_failed ( bool  v)
inherited

Definition at line 305 of file multi_runner.cpp.

◆ any_failed() [3/3]

bool ripple::test::detail::multi_runner_base< IsParent >::any_failed
inherited

Definition at line 298 of file multi_runner.cpp.

◆ add()

void ripple::test::detail::multi_runner_base< IsParent >::add ( results const &  r)
inherited

Definition at line 312 of file multi_runner.cpp.

◆ inc_keep_alive_count()

void ripple::test::detail::multi_runner_base< IsParent >::inc_keep_alive_count
inherited

Definition at line 319 of file multi_runner.cpp.

◆ get_keep_alive_count()

std::size_t ripple::test::detail::multi_runner_base< IsParent >::get_keep_alive_count
inherited

Definition at line 326 of file multi_runner.cpp.

◆ print_results()

void ripple::test::detail::multi_runner_base< IsParent >::print_results ( S &  s)
inherited

Definition at line 334 of file multi_runner.cpp.

Member Data Documentation

◆ os_

std::ostream& ripple::test::multi_runner_parent::os_
private

Definition at line 207 of file multi_runner.h.

◆ continue_message_queue_

std::atomic<bool> ripple::test::multi_runner_parent::continue_message_queue_ {true}
private

Definition at line 208 of file multi_runner.h.

◆ message_queue_thread_

std::thread ripple::test::multi_runner_parent::message_queue_thread_
private

Definition at line 209 of file multi_runner.h.

◆ running_suites_

std::set<std::string> ripple::test::multi_runner_parent::running_suites_
private

Definition at line 211 of file multi_runner.h.

◆ shared_mem_name_

constexpr const char * ripple::test::detail::multi_runner_base< IsParent >::shared_mem_name_
staticconstexprprivateinherited

Definition at line 148 of file multi_runner.h.

◆ message_queue_name_

constexpr const char * ripple::test::detail::multi_runner_base< IsParent >::message_queue_name_
staticconstexprprivateinherited

Definition at line 151 of file multi_runner.h.

◆ inner_

inner* ripple::test::detail::multi_runner_base< IsParent >::inner_
privateinherited

Definition at line 155 of file multi_runner.h.

◆ shared_mem_

boost::interprocess::shared_memory_object ripple::test::detail::multi_runner_base< IsParent >::shared_mem_
privateinherited

Definition at line 157 of file multi_runner.h.

◆ region_

boost::interprocess::mapped_region ripple::test::detail::multi_runner_base< IsParent >::region_
privateinherited

Definition at line 158 of file multi_runner.h.

◆ message_queue_

std::unique_ptr<boost::interprocess::message_queue> ripple::test::detail::multi_runner_base< IsParent >::message_queue_
protectedinherited

Definition at line 161 of file multi_runner.h.