Test suite for core infrastructure: ContentRegistry and EventBus. More...
#include <core_systems_test_suite.h>


Public Member Functions | |
| CoreSystemsTestSuite ()=default | |
| ~CoreSystemsTestSuite () override=default | |
| std::string | GetName () const override |
| TestCategory | GetCategory () const override |
| absl::Status | RunTests (TestResults &results) override |
| void | DrawConfiguration () override |
Public Member Functions inherited from yaze::test::TestSuite | |
| virtual | ~TestSuite ()=default |
| virtual bool | IsEnabled () const |
| virtual void | SetEnabled (bool enabled) |
Private Member Functions | |
| void | RunContentRegistryContextSetRomTest (TestResults &results) |
| void | RunContentRegistryContextClearTest (TestResults &results) |
| void | RunContentRegistryPanelRegistrationTest (TestResults &results) |
| void | RunContentRegistryThreadSafetyTest (TestResults &results) |
| void | RunPanelScopeRegistrationTest (TestResults &results) |
| void | RunEventBusSubscribePublishTest (TestResults &results) |
| void | RunEventBusUnsubscribeTest (TestResults &results) |
| void | RunEventBusMultipleSubscribersTest (TestResults &results) |
| void | RunEventBusTypeSafetyTest (TestResults &results) |
| void | RunCoreEventsCreationTest (TestResults &results) |
| TestResult | CreateResult (const std::string &name, std::chrono::time_point< std::chrono::steady_clock > start_time) |
| void | FinalizeResult (TestResult &result, std::chrono::time_point< std::chrono::steady_clock > start_time, TestResults &results) |
| void | AddSkippedResult (TestResults &results, const std::string &name, const std::string &reason) |
Private Attributes | |
| bool | test_content_registry_ = true |
| bool | test_event_bus_ = true |
| bool | test_core_events_ = true |
Additional Inherited Members | |
Protected Attributes inherited from yaze::test::TestSuite | |
| bool | enabled_ = true |
Test suite for core infrastructure: ContentRegistry and EventBus.
These tests verify the foundational systems that other components depend on. Tests are ROM-optional where possible.
Definition at line 26 of file core_systems_test_suite.h.
|
default |
|
overridedefault |
|
inlineoverridevirtual |
Implements yaze::test::TestSuite.
Definition at line 31 of file core_systems_test_suite.h.
Referenced by AddSkippedResult(), and CreateResult().
|
inlineoverridevirtual |
Implements yaze::test::TestSuite.
Definition at line 32 of file core_systems_test_suite.h.
References yaze::test::kUnit.
Referenced by AddSkippedResult(), and CreateResult().
|
inlineoverridevirtual |
Implements yaze::test::TestSuite.
Definition at line 34 of file core_systems_test_suite.h.
References RunContentRegistryContextClearTest(), RunContentRegistryContextSetRomTest(), RunContentRegistryPanelRegistrationTest(), RunContentRegistryThreadSafetyTest(), RunCoreEventsCreationTest(), RunEventBusMultipleSubscribersTest(), RunEventBusSubscribePublishTest(), RunEventBusTypeSafetyTest(), RunEventBusUnsubscribeTest(), and RunPanelScopeRegistrationTest().
|
inlineoverridevirtual |
Reimplemented from yaze::test::TestSuite.
Definition at line 52 of file core_systems_test_suite.h.
References test_content_registry_, test_core_events_, and test_event_bus_.
|
inlineprivate |
Definition at line 64 of file core_systems_test_suite.h.
References AddSkippedResult(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::editor::ContentRegistry::Context::rom(), yaze::editor::ContentRegistry::Context::SetRom(), yaze::test::TestResult::status, and test_content_registry_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 104 of file core_systems_test_suite.h.
References AddSkippedResult(), yaze::editor::ContentRegistry::Context::Clear(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::editor::ContentRegistry::Context::rom(), yaze::editor::ContentRegistry::Context::SetRom(), yaze::test::TestResult::status, and test_content_registry_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 145 of file core_systems_test_suite.h.
References AddSkippedResult(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::editor::ContentRegistry::Panels::GetAll(), yaze::test::kFailed, yaze::test::kPassed, yaze::test::TestResult::status, and test_content_registry_.
Referenced by RunTests().

|
inlineprivate |
Definition at line 179 of file core_systems_test_suite.h.
References AddSkippedResult(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::editor::ContentRegistry::Context::rom(), yaze::editor::ContentRegistry::Context::SetRom(), yaze::test::TestResult::status, and test_content_registry_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 227 of file core_systems_test_suite.h.
References AddSkippedResult(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::test::TestResult::status, and test_content_registry_.
Referenced by RunTests().

|
inlineprivate |
Definition at line 304 of file core_systems_test_suite.h.
References AddSkippedResult(), yaze::editor::RomLoadedEvent::Create(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::EventBus::Publish(), yaze::test::TestResult::status, yaze::EventBus::Subscribe(), and test_event_bus_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 349 of file core_systems_test_suite.h.
References AddSkippedResult(), yaze::editor::SessionClosedEvent::Create(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::EventBus::Publish(), yaze::test::TestResult::status, yaze::EventBus::Subscribe(), test_event_bus_, and yaze::EventBus::Unsubscribe().
Referenced by RunTests().
|
inlineprivate |
Definition at line 397 of file core_systems_test_suite.h.
References AddSkippedResult(), yaze::editor::FrameGuiBeginEvent::Create(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::EventBus::Publish(), yaze::test::TestResult::status, yaze::EventBus::Subscribe(), and test_event_bus_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 445 of file core_systems_test_suite.h.
References AddSkippedResult(), yaze::editor::RomLoadedEvent::Create(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::EventBus::Publish(), yaze::test::TestResult::status, yaze::EventBus::Subscribe(), and test_event_bus_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 489 of file core_systems_test_suite.h.
References AddSkippedResult(), yaze::editor::FrameBeginEvent::Create(), yaze::editor::FrameGuiBeginEvent::Create(), yaze::editor::FrameEndEvent::Create(), yaze::editor::EditorSwitchedEvent::Create(), yaze::editor::RomLoadedEvent::Create(), yaze::editor::RomModifiedEvent::Create(), yaze::editor::SessionClosedEvent::Create(), yaze::editor::SessionCreatedEvent::Create(), yaze::editor::SessionSwitchedEvent::Create(), yaze::editor::RomUnloadedEvent::Create(), CreateResult(), yaze::test::TestResult::error_message, FinalizeResult(), yaze::test::kFailed, yaze::test::kPassed, yaze::test::TestResult::status, and test_core_events_.
Referenced by RunTests().
|
inlineprivate |
Definition at line 550 of file core_systems_test_suite.h.
References yaze::test::TestResult::category, GetCategory(), GetName(), yaze::test::TestResult::name, yaze::test::TestResult::suite_name, and yaze::test::TestResult::timestamp.
Referenced by RunContentRegistryContextClearTest(), RunContentRegistryContextSetRomTest(), RunContentRegistryPanelRegistrationTest(), RunContentRegistryThreadSafetyTest(), RunCoreEventsCreationTest(), RunEventBusMultipleSubscribersTest(), RunEventBusSubscribePublishTest(), RunEventBusTypeSafetyTest(), RunEventBusUnsubscribeTest(), and RunPanelScopeRegistrationTest().

|
inlineprivate |
Definition at line 561 of file core_systems_test_suite.h.
References yaze::test::TestResults::AddResult(), and yaze::test::TestResult::duration.
Referenced by RunContentRegistryContextClearTest(), RunContentRegistryContextSetRomTest(), RunContentRegistryPanelRegistrationTest(), RunContentRegistryThreadSafetyTest(), RunCoreEventsCreationTest(), RunEventBusMultipleSubscribersTest(), RunEventBusSubscribePublishTest(), RunEventBusTypeSafetyTest(), RunEventBusUnsubscribeTest(), and RunPanelScopeRegistrationTest().

|
inlineprivate |
Definition at line 571 of file core_systems_test_suite.h.
References yaze::test::TestResults::AddResult(), yaze::test::TestResult::category, yaze::test::TestResult::duration, yaze::test::TestResult::error_message, GetCategory(), GetName(), yaze::test::kSkipped, yaze::test::TestResult::name, yaze::test::TestResult::status, yaze::test::TestResult::suite_name, and yaze::test::TestResult::timestamp.
Referenced by RunContentRegistryContextClearTest(), RunContentRegistryContextSetRomTest(), RunContentRegistryPanelRegistrationTest(), RunContentRegistryThreadSafetyTest(), RunCoreEventsCreationTest(), RunEventBusMultipleSubscribersTest(), RunEventBusSubscribePublishTest(), RunEventBusTypeSafetyTest(), RunEventBusUnsubscribeTest(), and RunPanelScopeRegistrationTest().

|
private |
Definition at line 585 of file core_systems_test_suite.h.
Referenced by DrawConfiguration(), RunContentRegistryContextClearTest(), RunContentRegistryContextSetRomTest(), RunContentRegistryPanelRegistrationTest(), RunContentRegistryThreadSafetyTest(), and RunPanelScopeRegistrationTest().
|
private |
Definition at line 586 of file core_systems_test_suite.h.
Referenced by DrawConfiguration(), RunEventBusMultipleSubscribersTest(), RunEventBusSubscribePublishTest(), RunEventBusTypeSafetyTest(), and RunEventBusUnsubscribeTest().
|
private |
Definition at line 587 of file core_systems_test_suite.h.
Referenced by DrawConfiguration(), and RunCoreEventsCreationTest().