SST/macro
Public Member Functions | Private Attributes | List of all members
ExceptionTestCase Class Reference

#include <test.h>

Inheritance diagram for ExceptionTestCase:
Inheritance graph
Collaboration diagram for ExceptionTestCase:
Collaboration graph

Public Member Functions

 ExceptionTestCase (const std::string &descr, const char *file, int line, const std::string &exc, const std::string &test, const std::string &errormsg, bool success)
 
bool is_correct () const
 
void print_error (std::ostream &os) const
 
void print_descr (std::ostream &os) const
 
void print_test_value (std::ostream &os) const
 
void print_asserted_value (std::ostream &os) const
 

Private Attributes

std::string descr_
 
const char * file_
 
int line_
 
std::string exc_
 
std::string test_
 
std::string errormsg_
 
bool success_
 

Detailed Description

Definition at line 482 of file test.h.

Constructor & Destructor Documentation

ExceptionTestCase::ExceptionTestCase ( const std::string &  descr,
const char *  file,
int  line,
const std::string &  exc,
const std::string &  test,
const std::string &  errormsg,
bool  success 
)
inline

Definition at line 495 of file test.h.

Member Function Documentation

bool ExceptionTestCase::is_correct ( ) const
inlinevirtual

Implements TestCase.

Definition at line 520 of file test.h.

void ExceptionTestCase::print_asserted_value ( std::ostream &  os) const
inlinevirtual

Implements TestCase.

Definition at line 538 of file test.h.

void ExceptionTestCase::print_descr ( std::ostream &  os) const
inlinevirtual

Implements TestCase.

Definition at line 528 of file test.h.

void ExceptionTestCase::print_error ( std::ostream &  os) const
inlinevirtual

Implements TestCase.

Definition at line 524 of file test.h.

void ExceptionTestCase::print_test_value ( std::ostream &  os) const
inlinevirtual

Implements TestCase.

Definition at line 534 of file test.h.

Member Data Documentation

std::string ExceptionTestCase::descr_
private

Definition at line 486 of file test.h.

std::string ExceptionTestCase::errormsg_
private

Definition at line 491 of file test.h.

std::string ExceptionTestCase::exc_
private

Definition at line 489 of file test.h.

const char* ExceptionTestCase::file_
private

Definition at line 487 of file test.h.

int ExceptionTestCase::line_
private

Definition at line 488 of file test.h.

bool ExceptionTestCase::success_
private

Definition at line 492 of file test.h.

std::string ExceptionTestCase::test_
private

Definition at line 490 of file test.h.


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