From bf046f87c8d322939c6a883a405056003b8b1abd Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Tue, 5 Feb 2019 17:11:54 +0000 Subject: Delete the old broken test suite. This doesn't work properly and is disabled in both debug & release builds. It will be resurrected with a proper unit testing framework in the future. --- include/modules.h | 7 ------- include/testsuite.h | 36 ------------------------------------ include/uid.h | 5 +---- 3 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 include/testsuite.h (limited to 'include') diff --git a/include/modules.h b/include/modules.h index b8c860fbc..86b620d07 100644 --- a/include/modules.h +++ b/include/modules.h @@ -896,13 +896,6 @@ class CoreExport Module : public classbase, public usecountbase */ virtual ModResult OnSetConnectClass(LocalUser* user, ConnectClass* myclass); -#ifdef INSPIRCD_ENABLE_TESTSUITE - /** Add test suite hooks here. These are used for testing functionality of a module - * via the --testsuite debugging parameter. - */ - virtual void OnRunTestSuite(); -#endif - /** Called for every item in a NAMES list, so that modules may reformat portions of it as they see fit. * For example NAMESX, channel mode +u and +I, and UHNAMES. * @param issuer The user who is going to receive the NAMES list being built diff --git a/include/testsuite.h b/include/testsuite.h deleted file mode 100644 index c760513f8..000000000 --- a/include/testsuite.h +++ /dev/null @@ -1,36 +0,0 @@ -/* - * InspIRCd -- Internet Relay Chat Daemon - * - * - * This file is part of InspIRCd. InspIRCd is free software: you can - * redistribute it and/or modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation, version 2. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more - * details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - - -#pragma once - -#ifdef INSPIRCD_ENABLE_TESTSUITE - -class TestSuite -{ - public: - TestSuite(); - ~TestSuite(); - - bool DoThreadTests(); - bool DoWildTests(); - bool DoCommaSepStreamTests(); - bool DoSpaceSepStreamTests(); - bool DoGenerateUIDTests(); -}; - -#endif diff --git a/include/uid.h b/include/uid.h index 772c8a716..d24a63e94 100644 --- a/include/uid.h +++ b/include/uid.h @@ -18,12 +18,9 @@ #pragma once -class TestSuite; - class CoreExport UIDGenerator { - friend class TestSuite; - + private: /** Holds the current UID. Used to generate the next one. */ std::string current_uid; -- cgit v1.2.3