The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

testsuite.cpp File Reference

#include "inspircd.h"
#include "testsuite.h"
#include "threadengine.h"
#include <iostream>

Include dependency graph for testsuite.cpp:

Go to the source code of this file.

Namespaces

namespace  std

Classes

class  TestSuiteThread

Defines

#define WCTEST(x, y)   cout << "match(\"" << x << "\",\"" << y "\") " << ((passed = (InspIRCd::Match(x, y, NULL))) ? " SUCCESS!\n" : " FAILURE\n")
#define WCTESTNOT(x, y)   cout << "!match(\"" << x << "\",\"" << y "\") " << ((passed = ((!InspIRCd::Match(x, y, NULL)))) ? " SUCCESS!\n" : " FAILURE\n")
#define CIDRTEST(x, y)   cout << "match(\"" << x << "\",\"" << y "\", true) " << ((passed = (InspIRCd::MatchCIDR(x, y, NULL))) ? " SUCCESS!\n" : " FAILURE\n")
#define CIDRTESTNOT(x, y)   cout << "!match(\"" << x << "\",\"" << y "\", true) " << ((passed = ((!InspIRCd::MatchCIDR(x, y, NULL)))) ? " SUCCESS!\n" : " FAILURE\n")


Define Documentation

#define CIDRTEST x,
 )     cout << "match(\"" << x << "\",\"" << y "\", true) " << ((passed = (InspIRCd::MatchCIDR(x, y, NULL))) ? " SUCCESS!\n" : " FAILURE\n")
 

Definition at line 105 of file testsuite.cpp.

Referenced by TestSuite::DoWildTests().

#define CIDRTESTNOT x,
 )     cout << "!match(\"" << x << "\",\"" << y "\", true) " << ((passed = ((!InspIRCd::MatchCIDR(x, y, NULL)))) ? " SUCCESS!\n" : " FAILURE\n")
 

Definition at line 107 of file testsuite.cpp.

Referenced by TestSuite::DoWildTests().

#define WCTEST x,
 )     cout << "match(\"" << x << "\",\"" << y "\") " << ((passed = (InspIRCd::Match(x, y, NULL))) ? " SUCCESS!\n" : " FAILURE\n")
 

Definition at line 100 of file testsuite.cpp.

Referenced by TestSuite::DoWildTests().

#define WCTESTNOT x,
 )     cout << "!match(\"" << x << "\",\"" << y "\") " << ((passed = ((!InspIRCd::Match(x, y, NULL)))) ? " SUCCESS!\n" : " FAILURE\n")
 

Definition at line 102 of file testsuite.cpp.

Referenced by TestSuite::DoWildTests().