Mock implementation of IAssetManager for testing.
More...
#include <MockAssetManager.hpp>
|
| | MockAssetManager (std::filesystem::path mockPath) |
| const std::filesystem::path & | getAssetsPath () const override |
| | Get the Assets Path object.
|
| std::filesystem::path | resolveAsset (const std::filesystem::path &relativePath) const override |
| | Resolve the full path of an asset given its relative path.
|
| bool | assetExists (const std::filesystem::path &) const override |
| | Check if an asset exists given its relative path.
|
| bool | validate () const override |
| | Validate the asset manager configuration.
|
| void | setMockExists (bool exists) |
| void | setMockValid (bool valid) |
| virtual | ~IAssetManager ()=default |
Mock implementation of IAssetManager for testing.
Allows controlling behavior for test scenarios without filesystem dependencies.
◆ MockAssetManager()
| MockAssetManager::MockAssetManager |
( |
std::filesystem::path | mockPath | ) |
|
|
inlineexplicit |
◆ assetExists()
| bool MockAssetManager::assetExists |
( |
const std::filesystem::path & | relativePath | ) |
const |
|
inlinenodiscardoverridevirtual |
◆ getAssetsPath()
| const std::filesystem::path & MockAssetManager::getAssetsPath |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
◆ resolveAsset()
| std::filesystem::path MockAssetManager::resolveAsset |
( |
const std::filesystem::path & | relativePath | ) |
const |
|
inlinenodiscardoverridevirtual |
◆ setMockExists()
| void MockAssetManager::setMockExists |
( |
bool | exists | ) |
|
|
inline |
◆ setMockValid()
| void MockAssetManager::setMockValid |
( |
bool | valid | ) |
|
|
inline |
◆ validate()
| bool MockAssetManager::validate |
( |
| ) |
const |
|
inlinenodiscardoverridevirtual |
The documentation for this class was generated from the following file: