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

Method SetUp

third-party/yoga/test/TabsHeaderLayout_test.cpp:50–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 YGConfigRef config;
49
50 void SetUp() override {
51 config = YGConfigNew();
52 YGConfigSetExperimentalFeatureEnabled(
53 config, YGExperimentalFeatureWebFlexBasis, true);
54 YGConfigSetExperimentalFeatureEnabled(
55 config, YGExperimentalFeatureFixFlexBasisFitContent, true);
56 YGConfigSetPointScaleFactor(config, 3.0f);
57 g_measureRecords.clear();
58 }
59
60 void TearDown() override { YGConfigFree(config); }
61 YGNodeRef makeNode() { return YGNodeNewWithConfig(config); }

Callers

nothing calls this directly

Calls 4

YGConfigNewFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected