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

Function getPooledViewCount

valdi/test/integration/Runtime_tests.cpp:5929–5939  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5927 return _createdViewCount;
5928 }
5929
5930protected:
5931 Valdi::Ref<Valdi::View> doCreateView(ViewNodeTree* viewNodeTree, ViewNode* viewNode) override {
5932 _createdViewCount++;
5933
5934 const auto& className = getViewClassName();
5935 return Valdi::makeShared<StandaloneView>(className, false, true);
5936 }
5937
5938private:
5939 size_t _createdViewCount = 0;
5940};
5941
5942size_t getPooledViewCount(RuntimeWrapper& wrapper, const StringBox& viewClassName) {

Callers 1

TEST_PFunction · 0.85

Calls 3

getViewPoolsStatsMethod · 0.80
endMethod · 0.65
findMethod · 0.45

Tested by

no test coverage detected