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
 
std::size_t tests () const
 
std::size_t suites () const
 
void add_failures (std::size_t failures)
 

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)
 
std::size_t tests () const
 
std::size_t suites () const
 

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 219 of file multi_runner.h.

Member Enumeration Documentation

◆ MessageType

Definition at line 170 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 396 of file multi_runner.cpp.

◆ ~multi_runner_parent()

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

Definition at line 462 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 479 of file multi_runner.cpp.

◆ tests() [1/2]

std::size_t ripple::test::multi_runner_parent::tests ( ) const

Definition at line 485 of file multi_runner.cpp.

◆ suites() [1/2]

std::size_t ripple::test::multi_runner_parent::suites ( ) const

Definition at line 491 of file multi_runner.cpp.

◆ add_failures()

void ripple::test::multi_runner_parent::add_failures ( std::size_t  failures)

Definition at line 497 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 358 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 301 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 308 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 322 of file multi_runner.cpp.

◆ any_failed() [3/3]

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

Definition at line 315 of file multi_runner.cpp.

◆ add()

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

Definition at line 329 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 336 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 343 of file multi_runner.cpp.

◆ print_results()

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

Definition at line 351 of file multi_runner.cpp.

◆ tests() [2/2]

Definition at line 370 of file multi_runner.cpp.

◆ suites() [2/2]

Definition at line 377 of file multi_runner.cpp.

Member Data Documentation

◆ os_

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

Definition at line 223 of file multi_runner.h.

◆ continue_message_queue_

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

Definition at line 224 of file multi_runner.h.

◆ message_queue_thread_

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

Definition at line 225 of file multi_runner.h.

◆ running_suites_

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

Definition at line 227 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 155 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 158 of file multi_runner.h.

◆ inner_

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

Definition at line 162 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 164 of file multi_runner.h.

◆ region_

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

Definition at line 165 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 168 of file multi_runner.h.