rippled
Loading...
Searching...
No Matches
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...

#include <multi_runner.h>

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)
 
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 char const * shared_mem_name_
 
static constexpr char const * message_queue_name_
 

Detailed Description

Manager for children running unit tests.

Definition at line 201 of file multi_runner.h.

Member Enumeration Documentation

◆ MessageType

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

◆ ~multi_runner_parent()

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

Definition at line 441 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/2]

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

Definition at line 460 of file multi_runner.cpp.

◆ tests()

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

Definition at line 466 of file multi_runner.cpp.

◆ suites()

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

Definition at line 472 of file multi_runner.cpp.

◆ add_failures()

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

Definition at line 478 of file multi_runner.cpp.

◆ message_queue_send()

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

Definition at line 152 of file multi_runner.cpp.

◆ checkout_test_index()

std::size_t ripple::detail::multi_runner_base< IsParent >::checkout_test_index ( )
inherited

Definition at line 159 of file multi_runner.cpp.

◆ checkout_job_index()

std::size_t ripple::detail::multi_runner_base< IsParent >::checkout_job_index ( )
inherited

Definition at line 162 of file multi_runner.cpp.

◆ any_failed() [2/2]

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

Definition at line 165 of file multi_runner.cpp.

◆ add()

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

Definition at line 168 of file multi_runner.cpp.

◆ inc_keep_alive_count()

void ripple::detail::multi_runner_base< IsParent >::inc_keep_alive_count ( )
inherited

Definition at line 171 of file multi_runner.cpp.

◆ get_keep_alive_count()

std::size_t ripple::detail::multi_runner_base< IsParent >::get_keep_alive_count ( )
inherited

Definition at line 174 of file multi_runner.cpp.

◆ print_results()

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

Definition at line 178 of file multi_runner.cpp.

Member Data Documentation

◆ os_

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

Definition at line 205 of file multi_runner.h.

◆ continue_message_queue_

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

Definition at line 206 of file multi_runner.h.

◆ message_queue_thread_

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

Definition at line 207 of file multi_runner.h.

◆ running_suites_

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

Definition at line 209 of file multi_runner.h.

◆ shared_mem_name_

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

Definition at line 135 of file multi_runner.h.

◆ message_queue_name_

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

Definition at line 138 of file multi_runner.h.

◆ inner_

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

Definition at line 142 of file multi_runner.h.

◆ shared_mem_

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

Definition at line 144 of file multi_runner.h.

◆ region_

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

Definition at line 145 of file multi_runner.h.

◆ message_queue_

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

Definition at line 148 of file multi_runner.h.