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

Function getViewForId

valdi/test/utils/valdi_test_utils.cpp:111–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

109}
110
111DummyView getViewForId(const Valdi::SharedViewNodeTree& viewNodeTree, std::string id) {
112 auto viewNode = getViewNodeForId(viewNodeTree, id);
113 if (viewNode == nullptr) {
114 return getDummyView(nullptr);
115 }
116
117 return getDummyView(viewNode->getViewAndDisablePooling());
118}
119
120Valdi::Path resolveTestPath(const std::string& path) {
121 char cwdBuffer[PATH_MAX];

Callers 1

TEST_PFunction · 0.85

Calls 3

getViewNodeForIdFunction · 0.85
getDummyViewFunction · 0.85

Tested by

no test coverage detected