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

Function assertHasNoView

valdi/test/utils/valdi_test_utils.cpp:276–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274 tree->setLayoutSpecs(rootView.getFrame().size(), Valdi::LayoutDirectionLTR);
275 }
276 }
277}
278
279std::vector<Valdi::ViewNode*> findViewNodesWithId(const Valdi::SharedViewNode& viewNode, const char* nodeId) {
280 auto nodeIdStr = STRING_LITERAL(nodeId);
281 std::vector<Valdi::ViewNode*> outNodes;
282 forEachViewNode(viewNode, [&](const auto& viewNode) {
283 if (viewNode->getDebugId() == nodeIdStr) {
284 outNodes.push_back(viewNode);
285 }

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