FuncDoodle
Loading...
Searching...
No Matches
FuncDoodle::TestRegistry Class Reference

Global singleton collecting test scope results. More...

#include <Test.h>

Classes

struct  ScopeResult

Public Member Functions

void RegisterScope (const char *name, int passed, int total, int failed)
 Registers a completed test scope.
void PrintSummary ()
 Prints a full summary of all executed tests.

Static Public Member Functions

static TestRegistryInstance ()
 Returns the global test registry singleton.

Private Attributes

std::vector< ScopeResultm_Results

Detailed Description

Global singleton collecting test scope results.

Aggregates results from all TestScope instances and prints a final summary.

Member Function Documentation

◆ Instance()

TestRegistry & FuncDoodle::TestRegistry::Instance ( )
inlinestatic

Returns the global test registry singleton.

Returns
Singleton test registry instance.

◆ PrintSummary()

void FuncDoodle::TestRegistry::PrintSummary ( )
inline

Prints a full summary of all executed tests.

Displays total, passed, failed, and success percentage.

◆ RegisterScope()

void FuncDoodle::TestRegistry::RegisterScope ( const char * name,
int passed,
int total,
int failed )
inline

Registers a completed test scope.

Member Data Documentation

◆ m_Results

std::vector<ScopeResult> FuncDoodle::TestRegistry::m_Results
private

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