libcopp  1.1.0
Public Types | Public Member Functions | Data Fields
test_case_base Class Reference

#include <test_case_base.h>

Collaboration diagram for test_case_base:
Collaboration graph

Public Types

typedef void(* test_func) ()
 

Public Member Functions

 test_case_base (const std::string &test_name, const std::string &case_name, test_func func)
 
virtual ~test_case_base ()
 
virtual int run ()
 

Data Fields

int success_
 
int failed_
 
test_func func_
 

Detailed Description

Definition at line 24 of file test_case_base.h.

Member Typedef Documentation

typedef void(* test_case_base::test_func) ()

Definition at line 26 of file test_case_base.h.

Constructor & Destructor Documentation

test_case_base::test_case_base ( const std::string &  test_name,
const std::string &  case_name,
test_func  func 
)

Definition at line 14 of file test_case_base.cpp.

References test_manager::append(), failed_, func_, test_manager::me(), and success_.

test_case_base::~test_case_base ( )
virtual

Definition at line 24 of file test_case_base.cpp.

Member Function Documentation

int test_case_base::run ( )
virtual

Field Documentation

int test_case_base::failed_

Definition at line 35 of file test_case_base.h.

Referenced by run(), and test_case_base().

test_func test_case_base::func_

Definition at line 37 of file test_case_base.h.

Referenced by run(), and test_case_base().

int test_case_base::success_

Definition at line 34 of file test_case_base.h.

Referenced by run(), and test_case_base().


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