DotNameLib
Loading...
Searching...
No Matches
AssetManagerTest.cpp File Reference
#include "../../src/Utils/Assets/AssetManager.hpp"
#include "../../src/Utils/Assets/AssetManagerFactory.hpp"
#include "MockAssetManager.hpp"
#include <filesystem>
#include <fstream>
#include <gtest/gtest.h>
Include dependency graph for AssetManagerTest.cpp:

Classes

class  AssetManagerTest

Functions

 TEST_F (AssetManagerTest, ConstructorSetsPath)
 TEST_F (AssetManagerTest, ValidateReturnsTrueForExistingDirectory)
 TEST_F (AssetManagerTest, ValidateReturnsFalseForNonexistentPath)
 TEST_F (AssetManagerTest, ValidateReturnsFalseForEmptyPath)
 TEST_F (AssetManagerTest, ResolveAssetCombinesPaths)
 TEST_F (AssetManagerTest, ResolveAssetWithSubdirectory)
 TEST_F (AssetManagerTest, AssetExistsReturnsTrueForExistingFile)
 TEST_F (AssetManagerTest, AssetExistsReturnsFalseForNonexistentFile)
 TEST_F (AssetManagerTest, AssetExistsWorksWithSubdirectories)
 TEST_F (AssetManagerTest, FactoryCreateReturnsValidManager)
 TEST_F (AssetManagerTest, FactoryCreateDefaultFindsAssetsPath)
 TEST (MockAssetManagerTest, BasicFunctionality)
 TEST (MockAssetManagerTest, ResolveAssetCombinesPaths)
 TEST (MockAssetManagerTest, CanControlValidation)
 TEST (MockAssetManagerTest, CanControlAssetExistence)
 TEST (MockAssetManagerTest, UsefulForTestingDependentCode)
 TEST_F (AssetManagerTest, HandlesPathsWithSpaces)
 TEST_F (AssetManagerTest, HandlesUnicodeInPaths)
 TEST_F (AssetManagerTest, ResolveAssetWithEmptyRelativePath)
 TEST_F (AssetManagerTest, MultipleManagersWithDifferentPaths)
 TEST_F (AssetManagerTest, WorksThroughInterfacePointer)
 TEST_F (AssetManagerTest, SharedPointerLifetimeManagement)

Function Documentation

◆ TEST() [1/5]

TEST ( MockAssetManagerTest ,
BasicFunctionality  )
Here is the call graph for this function:

◆ TEST() [2/5]

TEST ( MockAssetManagerTest ,
CanControlAssetExistence  )
Here is the call graph for this function:

◆ TEST() [3/5]

TEST ( MockAssetManagerTest ,
CanControlValidation  )
Here is the call graph for this function:

◆ TEST() [4/5]

TEST ( MockAssetManagerTest ,
ResolveAssetCombinesPaths  )
Here is the call graph for this function:

◆ TEST() [5/5]

TEST ( MockAssetManagerTest ,
UsefulForTestingDependentCode  )

◆ TEST_F() [1/17]

TEST_F ( AssetManagerTest ,
AssetExistsReturnsFalseForNonexistentFile  )
Here is the call graph for this function:

◆ TEST_F() [2/17]

TEST_F ( AssetManagerTest ,
AssetExistsReturnsTrueForExistingFile  )
Here is the call graph for this function:

◆ TEST_F() [3/17]

TEST_F ( AssetManagerTest ,
AssetExistsWorksWithSubdirectories  )
Here is the call graph for this function:

◆ TEST_F() [4/17]

TEST_F ( AssetManagerTest ,
ConstructorSetsPath  )
Here is the call graph for this function:

◆ TEST_F() [5/17]

TEST_F ( AssetManagerTest ,
FactoryCreateDefaultFindsAssetsPath  )
Here is the call graph for this function:

◆ TEST_F() [6/17]

TEST_F ( AssetManagerTest ,
FactoryCreateReturnsValidManager  )
Here is the call graph for this function:

◆ TEST_F() [7/17]

TEST_F ( AssetManagerTest ,
HandlesPathsWithSpaces  )
Here is the call graph for this function:

◆ TEST_F() [8/17]

TEST_F ( AssetManagerTest ,
HandlesUnicodeInPaths  )
Here is the call graph for this function:

◆ TEST_F() [9/17]

TEST_F ( AssetManagerTest ,
MultipleManagersWithDifferentPaths  )
Here is the call graph for this function:

◆ TEST_F() [10/17]

TEST_F ( AssetManagerTest ,
ResolveAssetCombinesPaths  )
Here is the call graph for this function:

◆ TEST_F() [11/17]

TEST_F ( AssetManagerTest ,
ResolveAssetWithEmptyRelativePath  )
Here is the call graph for this function:

◆ TEST_F() [12/17]

TEST_F ( AssetManagerTest ,
ResolveAssetWithSubdirectory  )
Here is the call graph for this function:

◆ TEST_F() [13/17]

TEST_F ( AssetManagerTest ,
SharedPointerLifetimeManagement  )
Here is the call graph for this function:

◆ TEST_F() [14/17]

TEST_F ( AssetManagerTest ,
ValidateReturnsFalseForEmptyPath  )
Here is the call graph for this function:

◆ TEST_F() [15/17]

TEST_F ( AssetManagerTest ,
ValidateReturnsFalseForNonexistentPath  )
Here is the call graph for this function:

◆ TEST_F() [16/17]

TEST_F ( AssetManagerTest ,
ValidateReturnsTrueForExistingDirectory  )
Here is the call graph for this function:

◆ TEST_F() [17/17]

TEST_F ( AssetManagerTest ,
WorksThroughInterfacePointer  )