From 5fbbb51412ca01f3967ef5f459571691b05ada3b Mon Sep 17 00:00:00 2001 From: mkirsz <s1351949@sms.ed.ac.uk> Date: Sat, 8 Mar 2025 00:28:30 +0000 Subject: [PATCH] All? --- tests/test_iworkspace_manager.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/tests/test_iworkspace_manager.cpp b/tests/test_iworkspace_manager.cpp index b186d51..e69de29 100644 --- a/tests/test_iworkspace_manager.cpp +++ b/tests/test_iworkspace_manager.cpp @@ -1,31 +0,0 @@ -#include "catch2/catch.hpp" -#include <tadah/core/memory/IWorkspaceManager.h> - -namespace tadah { -namespace core { -namespace memory { - -// A minimal concrete mock derived from IWorkspaceManager -class MockWorkspaceManager : public IWorkspaceManager { -public: - // Provide a virtual destructor, automatically calls base ~IWorkspaceManager() - ~MockWorkspaceManager() override = default; - // Implement any pure virtual methods if the interface has them - // For example: - // void somePureVirtualFunction() override { /* do nothing */ } -}; - -} // namespace memory -} // namespace core -} // namespace tadah - -TEST_CASE("IWorkspaceManager mock derived class", "[IWorkspaceManager]") -{ - using namespace tadah::core::memory; - - // We simply create and destroy a MockWorkspaceManager object. - // This confirms that ~IWorkspaceManager() is indeed callable and causes no errors. - MockWorkspaceManager mgr; - REQUIRE(true); // If we reach this line, construction & destruction work. -} - -- GitLab