MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / expectEntityClassHasSkinnedModel

Function expectEntityClassHasSkinnedModel

test/Skin.cpp:741–747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

739}
740
741void expectEntityClassHasSkinnedModel(const std::string& eclassName, const std::string& expectedSkin, const std::vector<std::string>& expectedMaterials)
742{
743 auto eclass = GlobalEntityClassManager().findClass(eclassName);
744 EXPECT_TRUE(eclass) << "Unable to locate entityDef " << eclassName;
745 auto entity = GlobalEntityModule().createEntity(eclass);
746 expectEntityHasSkinnedModel(entity, expectedSkin, expectedMaterials);
747}
748
749void setSkinKeyAndCheckModel(const IEntityNodePtr& entity, const std::string& expectedSkin, const std::vector<std::string>& expectedMaterials)
750{

Callers 1

TEST_FFunction · 0.85

Calls 3

findClassMethod · 0.45
createEntityMethod · 0.45

Tested by

no test coverage detected