| 26 | }; |
| 27 | |
| 28 | TEST_F(PrefabTest, LoadPrefabAt) |
| 29 | { |
| 30 | loadPrefabAtOrigin("large_bounds.pfbx"); |
| 31 | |
| 32 | auto numSpeakers = algorithm::getChildCount(GlobalMapModule().getRoot(), [](const scene::INodePtr& node) |
| 33 | { |
| 34 | return Node_getSpeakerNode(node) != nullptr; |
| 35 | }); |
| 36 | |
| 37 | auto numLights = algorithm::getChildCount(GlobalMapModule().getRoot(), [](const scene::INodePtr& node) |
| 38 | { |
| 39 | return Node_getLightNode(node) != nullptr; |
| 40 | }); |
| 41 | |
| 42 | auto numBrushes = algorithm::getChildCount(GlobalMapModule().getWorldspawn(), [](const scene::INodePtr& node) |
| 43 | { |
| 44 | return Node_getIBrush(node) != nullptr; |
| 45 | }); |
| 46 | |
| 47 | EXPECT_EQ(numSpeakers, 1); |
| 48 | EXPECT_EQ(numLights, 1); |
| 49 | EXPECT_EQ(numBrushes, 1); |
| 50 | } |
| 51 | |
| 52 | TEST_F(PrefabTest, PrefabBoundsCalculation) |
| 53 | { |
nothing calls this directly
no test coverage detected