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

Function expectEntityClassWithSkinKeyHasSkinnedModel

test/Skin.cpp:773–780  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

771}
772
773void expectEntityClassWithSkinKeyHasSkinnedModel(const std::string& eclassName, const std::string& expectedSkin, const std::vector<std::string>& expectedMaterials)
774{
775 auto eclass = GlobalEntityClassManager().findClass(eclassName);
776 EXPECT_TRUE(eclass) << "Unable to locate entityDef " << eclassName;
777
778 auto entity = GlobalEntityModule().createEntity(eclass);
779 setSkinKeyAndCheckModel(entity, expectedSkin, expectedMaterials);
780}
781
782namespace
783{

Callers 1

TEST_FFunction · 0.85

Calls 3

setSkinKeyAndCheckModelFunction · 0.85
findClassMethod · 0.45
createEntityMethod · 0.45

Tested by

no test coverage detected