Home  · Classes  · Annotated Classes  · Modules  · Members  · Namespaces  · Related Pages

ClassTest.h File Reference

(Maintainer: Marc Sturm)

#include <OpenMS/config.h>
#include <OpenMS/CONCEPT/Exception.h>
#include <OpenMS/DATASTRUCTURES/String.h>
#include <OpenMS/SYSTEM/ProcessResource.h>
#include <string>
#include <list>
#include <iostream>
#include <fstream>
#include <boost/lexical_cast.hpp>
#include <unistd.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <strstream>

Go to the source code of this file.

Namespaces

namespace  OpenMS

Defines

#define OPENMS_WITHIN_CLASSTEST   1
 Indicates that a class test is being compiled.
#define PRECISION(a)
 Define the precision for floating point comparisons.
#define START_TEST(class_name, version)
 Create the test header for a certain class.
#define END_TEST
 Termination of test program.
#define CHECK(name_of_test)
 Declare subtest name.
#define STATUS(message)
 Print a status message.
#define OK   STATUS("ok")
 Shorthand for STATUS("ok").
#define RESULT
 Check subtest result.
#define NEW_TMP_FILE(filename)
 Create a temporary filename.
#define TEST_REAL_EQUAL(a, b)
 Floating point equality macro.
#define TEST_STRING_EQUAL(a, b)
 String equality macro.
#define TEST_EQUAL(a, b)
 Generic equality macro.
#define TEST_NOT_EQUAL(a, b)
 Generic inequality macro.
#define TEST_EXCEPTION(exception_type, command)
 Exception test macro.
#define NOT_TESTABLE
 Macro that suppresses the warning issued when no subtests are performed.
#define TEST_EXCEPTION_WITH_MESSAGE(exception_type, command, message)
 Exception test macro (with test for exception message).
#define ABORT_IF(condition)
 Skip remainder of subtest.
#define TEST_FILE(filename, templatename)
 File comparison macro.


Define Documentation

#define OPENMS_WITHIN_CLASSTEST   1

Indicates that a class test is being compiled.

Used e.g. in OPENMS_PRECONDITION and OPENMS_POSTCONDITION so that we can test these even if the global OPENMS_DEBUG macro is not set.


Generated Tue Apr 1 15:36:39 2008 -- using doxygen 1.5.4 OpenMS / TOPP 1.1