Scale Stack 0.3 Developer Documentation

scalestack/kernel/test.h File Reference

Kernel Test Declarations and Macro Definitions. More...

#include <cassert>
#include <exception>
#include <functional>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <scalestack/kernel/core.h>
#include <scalestack/kernel/macros.h>

Go to the source code of this file.

Data Structures

class  scalestack::kernel::test_suite< T >

Namespaces

namespace  scalestack
namespace  scalestack::kernel

Defines

#define test_case(_name)
#define assert_exception(_method)

Detailed Description

Kernel Test Declarations and Macro Definitions.

Definition in file test.h.


Define Documentation

#define test_case ( _name   ) 
Value:
_test_cases.push_back(std::make_pair(SCALESTACK_QUOTE(_name), \
                                      std::mem_fun(&_name)))

Definition at line 158 of file test.h.

#define assert_exception ( _method   ) 
Value:
do \
{ \
  bool _test_exception = false; \
  try \
  { \
    _method; \
  } \
  catch (std::exception&) \
  { \
    _test_exception = true; \
  } \
  assert(_test_exception); \
} \
while (false)

Definition at line 162 of file test.h.

Generated on Thu Feb 17 13:10:21 2011 by  doxygen 1.6.3