mirror of
https://github.com/logos-co/logos-cpp-sdk.git
synced 2026-08-31 09:41:06 +00:00
18 lines
439 B
C++
18 lines
439 B
C++
#ifndef MOCK_REGISTRY_H
|
|||
|
|
#define MOCK_REGISTRY_H
|
||
|
|
|
||
|
|
#include "../../logos_registry.h"
|
||
|
|
|
||
|
|
/**
|
||
|
|
* @brief Trivial LogosRegistry implementation for mock mode.
|
||
|
|
*
|
||
|
|
* No real registry endpoint is needed in mock mode; this implementation
|
||
|
|
* simply reports itself as initialized so that callers do not stall.
|
||
|
|
*/
|
||
|
|
class MockRegistry : public LogosRegistry {
|
||
|
|
public:
|
||
|
|
bool isInitialized() const override { return true; }
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif // MOCK_REGISTRY_H
|