MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getNumberOfPooledViews

Function getNumberOfPooledViews

valdi/test/utils/valdi_test_utils.cpp:300–306  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298
299void assertHasNoView(const Valdi::SharedViewNode& viewNode) {
300 assertHasNoView(viewNode.get());
301}
302
303void assertAllHasView(Valdi::ViewNode* viewNode) {
304 forEachViewNode(viewNode, [&](const auto& node) {
305 if (!node->hasView()) {
306 throw Valdi::Exception(fmt::format("Node has NOT a view but SHOULD: \n{}", node->toXML()));
307 }
308 });
309}

Callers 1

TEST_PFunction · 0.85

Calls 2

endMethod · 0.65
findMethod · 0.45

Tested by

no test coverage detected