rippled
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Private Attributes | Static Private Attributes | List of all members
ripple::detail::multi_runner_base< IsParent > Class Template Reference

#include <multi_runner.h>

Collaboration diagram for ripple::detail::multi_runner_base< IsParent >:
Collaboration graph
[legend]

Classes

struct  inner
 

Public Member Functions

 multi_runner_base ()
 
 ~multi_runner_base ()
 
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 ()
 
template<class S >
void print_results (S &s)
 
bool any_failed () const
 
std::size_t tests () const
 
std::size_t suites () const
 
void add_failures (std::size_t failures)
 

Protected Types

enum class  MessageType : std::uint8_t { test_start , test_end , log }
 

Protected Member Functions

void message_queue_send (MessageType mt, std::string const &s)
 

Protected Attributes

std::unique_ptr< boost::interprocess::message_queue > message_queue_
 

Private Attributes

innerinner_
 
boost::interprocess::shared_memory_object shared_mem_
 
boost::interprocess::mapped_region region_
 

Static Private Attributes

static constexpr char const * shared_mem_name_ = "RippledUnitTestSharedMem"
 
static constexpr char const * message_queue_name_
 

Detailed Description

template<bool IsParent>
class ripple::detail::multi_runner_base< IsParent >

Definition at line 84 of file multi_runner.h.

Member Enumeration Documentation

◆ MessageType

template<bool IsParent>
enum class ripple::detail::multi_runner_base::MessageType : std::uint8_t
strongprotected
Enumerator
test_start 
test_end 
log 

Definition at line 150 of file multi_runner.h.

Constructor & Destructor Documentation

◆ multi_runner_base()

template<bool IsParent>
ripple::detail::multi_runner_base< IsParent >::multi_runner_base ( )

Definition at line 211 of file multi_runner.cpp.

◆ ~multi_runner_base()

template<bool IsParent>
ripple::detail::multi_runner_base< IsParent >::~multi_runner_base ( )

Definition at line 266 of file multi_runner.cpp.

Member Function Documentation

◆ message_queue_send()

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

Definition at line 335 of file multi_runner.cpp.

◆ checkout_test_index()

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

Definition at line 278 of file multi_runner.cpp.

◆ checkout_job_index()

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

Definition at line 285 of file multi_runner.cpp.

◆ any_failed() [1/2]

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

Definition at line 299 of file multi_runner.cpp.

◆ add()

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

Definition at line 306 of file multi_runner.cpp.

◆ inc_keep_alive_count()

template<bool IsParent>
void ripple::detail::multi_runner_base< IsParent >::inc_keep_alive_count ( )

Definition at line 313 of file multi_runner.cpp.

◆ get_keep_alive_count()

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

Definition at line 320 of file multi_runner.cpp.

◆ print_results()

template<bool IsParent>
template<class S >
void ripple::detail::multi_runner_base< IsParent >::print_results ( S &  s)

Definition at line 328 of file multi_runner.cpp.

◆ any_failed() [2/2]

template<bool IsParent>
bool ripple::detail::multi_runner_base< IsParent >::any_failed ( ) const

Definition at line 292 of file multi_runner.cpp.

◆ tests()

template<bool IsParent>
std::size_t ripple::detail::multi_runner_base< IsParent >::tests ( ) const

Definition at line 347 of file multi_runner.cpp.

◆ suites()

template<bool IsParent>
std::size_t ripple::detail::multi_runner_base< IsParent >::suites ( ) const

Definition at line 354 of file multi_runner.cpp.

◆ add_failures()

template<bool IsParent>
void ripple::detail::multi_runner_base< IsParent >::add_failures ( std::size_t  failures)

Definition at line 361 of file multi_runner.cpp.

Member Data Documentation

◆ shared_mem_name_

template<bool IsParent>
constexpr char const* ripple::detail::multi_runner_base< IsParent >::shared_mem_name_ = "RippledUnitTestSharedMem"
staticconstexprprivate

Definition at line 135 of file multi_runner.h.

◆ message_queue_name_

template<bool IsParent>
constexpr char const* ripple::detail::multi_runner_base< IsParent >::message_queue_name_
staticconstexprprivate
Initial value:
=
"RippledUnitTestMessageQueue"

Definition at line 138 of file multi_runner.h.

◆ inner_

template<bool IsParent>
inner* ripple::detail::multi_runner_base< IsParent >::inner_
private

Definition at line 142 of file multi_runner.h.

◆ shared_mem_

template<bool IsParent>
boost::interprocess::shared_memory_object ripple::detail::multi_runner_base< IsParent >::shared_mem_
private

Definition at line 144 of file multi_runner.h.

◆ region_

template<bool IsParent>
boost::interprocess::mapped_region ripple::detail::multi_runner_base< IsParent >::region_
private

Definition at line 145 of file multi_runner.h.

◆ message_queue_

template<bool IsParent>
std::unique_ptr<boost::interprocess::message_queue> ripple::detail::multi_runner_base< IsParent >::message_queue_
protected

Definition at line 148 of file multi_runner.h.