libcopp  2.2.0
Public Types | Public Member Functions | Data Fields | Private Member Functions
test_on_exit_base Class Reference

#include <test_case_base.h>

Collaboration diagram for test_on_exit_base:
Collaboration graph

Public Types

typedef void(* on_exit_func) ()
 

Public Member Functions

typedef UTIL_UNIT_TEST_MACRO_AUTO_SET (std::string) before_set_t
 
template<typename... T>
 test_on_exit_base (const std::string &n, on_exit_func func, T &&... deps)
 
template<typename... T>
void expand (T &&...)
 
virtual ~test_on_exit_base ()
 
virtual int run ()
 

Data Fields

std::string name
 
on_exit_func func_
 
before_set_t before
 

Private Member Functions

void register_self ()
 

Detailed Description

Definition at line 81 of file test_case_base.h.

Member Typedef Documentation

◆ on_exit_func

typedef void(* test_on_exit_base::on_exit_func) ()

Definition at line 84 of file test_case_base.h.

Constructor & Destructor Documentation

◆ test_on_exit_base()

template<typename... T>
test_on_exit_base::test_on_exit_base ( const std::string &  n,
on_exit_func  func,
T &&...  deps 
)
inline

Definition at line 88 of file test_case_base.h.

References before, expand(), and register_self().

◆ ~test_on_exit_base()

test_on_exit_base::~test_on_exit_base ( )
virtual

Definition at line 55 of file test_case_base.cpp.

Member Function Documentation

◆ expand()

template<typename... T>
void test_on_exit_base::expand ( T &&  ...)
inline

Definition at line 95 of file test_case_base.h.

Referenced by test_on_exit_base().

◆ register_self()

void test_on_exit_base::register_self ( )
private

Definition at line 53 of file test_case_base.cpp.

References test_manager::append_event_on_exit(), test_manager::me(), and name.

Referenced by test_on_exit_base().

◆ run()

int test_on_exit_base::run ( )
virtual

Definition at line 57 of file test_case_base.cpp.

References func_.

◆ UTIL_UNIT_TEST_MACRO_AUTO_SET()

typedef test_on_exit_base::UTIL_UNIT_TEST_MACRO_AUTO_SET ( std::string  )

Field Documentation

◆ before

before_set_t test_on_exit_base::before

Definition at line 103 of file test_case_base.h.

Referenced by test_on_exit_base().

◆ func_

on_exit_func test_on_exit_base::func_

Definition at line 102 of file test_case_base.h.

Referenced by run().

◆ name

std::string test_on_exit_base::name

Definition at line 101 of file test_case_base.h.

Referenced by register_self().


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