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

Method setViewModel

valdi/test/integration/RuntimeTestsUtils.cpp:114–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void RuntimeWrapper::setViewModel(const Valdi::SharedContext& context, const Valdi::Value& viewModel) {
115 auto viewModelConvertible = Valdi::makeShared<Valdi::LazyValueConvertible>([=]() { return viewModel; });
116 context->setViewModel(viewModelConvertible);
117}
118
119void RuntimeWrapper::flushJsQueue() {
120 if (standaloneRuntime->getRuntime().getJavaScriptRuntime() != nullptr) {

Callers 2

TEST_PFunction · 0.45
TEST_PFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected