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

Function getContext

valdi/test/integration/Runtime_tests.cpp:2607–2615  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2605
2606 ASSERT_FALSE(tree->getContext()->isDestroyed());
2607
2608 auto newTree = wrapper.runtime->getViewNodeTreeManager().getAllRootViewNodeTrees()[0];
2609 // We should have the same tree
2610 ASSERT_EQ(tree, newTree);
2611 wrapper.waitUntilAllUpdatesCompleted();
2612
2613 ASSERT_EQ(Value(viewModel), newTree->getContext()->getViewModel()->toValue());
2614
2615 ASSERT_EQ(DummyView("SCValdiView")
2616 .addChild(DummyView("SCValdiLabel").addAttribute("color", "red").addAttribute("value", "Hello"))
2617 .addChild(DummyView("SCValdiLabel")),
2618 getRootView(newTree));

Callers 1

hasContextFunction · 0.70

Calls 1

getPathMethod · 0.45

Tested by

no test coverage detected