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

Function getRootView

valdi/test/utils/valdi_test_utils.cpp:91–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91DummyView getRootView(Valdi::SharedViewNodeTree& viewNodeTree) {
92 auto rootView = viewNodeTree->getRootView();
93 if (rootView == nullptr) {
94 throw Valdi::Exception("No root view node in that context");
95 }
96 return getDummyView(rootView);
97}
98
99Valdi::ViewNodePath parseNodePath(std::string_view nodePath) {
100 auto result = Valdi::ViewNodePath::parse(nodePath);

Callers 11

TEST_PFunction · 0.85
TEST_PMethod · 0.85
flushOnDrawCallbacksMethod · 0.85
beginViewTransactionMethod · 0.85
invalidateLayoutMethod · 0.85
getKeyboardManagerMethod · 0.85
beginRenderingViewMethod · 0.85
endRenderingViewMethod · 0.85
onNextDrawMethod · 0.85

Calls 3

getDummyViewFunction · 0.85
ExceptionClass · 0.50
getRootViewMethod · 0.45

Tested by

no test coverage detected