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

Function assertAllHasView

valdi/test/utils/valdi_test_utils.cpp:288–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 });
287
288 return outNodes;
289}
290
291void assertHasNoView(Valdi::ViewNode* viewNode) {
292 forEachViewNode(viewNode, [&](const auto& node) {
293 if (node->hasView()) {
294 throw Valdi::Exception(fmt::format("Node HAS a view but SHOULDNT: \n{}", node->toXML()));
295 }
296 });
297}

Callers 1

TEST_PFunction · 0.85

Calls 5

forEachViewNodeFunction · 0.85
hasViewMethod · 0.80
getMethod · 0.65
ExceptionClass · 0.50
toXMLMethod · 0.45

Tested by

no test coverage detected