yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::test::CoreSystemsTestSuite Class Reference

Test suite for core infrastructure: ContentRegistry and EventBus. More...

#include <core_systems_test_suite.h>

Inheritance diagram for yaze::test::CoreSystemsTestSuite:
Collaboration diagram for yaze::test::CoreSystemsTestSuite:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CoreSystemsTestSuite()

yaze::test::CoreSystemsTestSuite::CoreSystemsTestSuite ( )
default

◆ ~CoreSystemsTestSuite()

yaze::test::CoreSystemsTestSuite::~CoreSystemsTestSuite ( )
overridedefault

Member Function Documentation

◆ GetName()

std::string yaze::test::CoreSystemsTestSuite::GetName ( ) const
inlineoverridevirtual

Implements yaze::test::TestSuite.

Definition at line 31 of file core_systems_test_suite.h.

Referenced by AddSkippedResult(), and CreateResult().

◆ GetCategory()

TestCategory yaze::test::CoreSystemsTestSuite::GetCategory ( ) const
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().

◆ RunTests()

◆ DrawConfiguration()

void yaze::test::CoreSystemsTestSuite::DrawConfiguration ( )
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_.

◆ RunContentRegistryContextSetRomTest()

◆ RunContentRegistryContextClearTest()

◆ RunContentRegistryPanelRegistrationTest()

void yaze::test::CoreSystemsTestSuite::RunContentRegistryPanelRegistrationTest ( TestResults & results)
inlineprivate

◆ RunContentRegistryThreadSafetyTest()

◆ RunPanelScopeRegistrationTest()

void yaze::test::CoreSystemsTestSuite::RunPanelScopeRegistrationTest ( TestResults & results)
inlineprivate

◆ RunEventBusSubscribePublishTest()

◆ RunEventBusUnsubscribeTest()

◆ RunEventBusMultipleSubscribersTest()

◆ RunEventBusTypeSafetyTest()

◆ RunCoreEventsCreationTest()

◆ CreateResult()

◆ FinalizeResult()

◆ AddSkippedResult()

Member Data Documentation

◆ test_content_registry_

◆ test_event_bus_

bool yaze::test::CoreSystemsTestSuite::test_event_bus_ = true
private

◆ test_core_events_

bool yaze::test::CoreSystemsTestSuite::test_core_events_ = true
private

Definition at line 587 of file core_systems_test_suite.h.

Referenced by DrawConfiguration(), and RunCoreEventsCreationTest().


The documentation for this class was generated from the following file: