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

Method setViewNodeAttribute

valdi/test/utils/ViewNodeTestsUtils.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void ViewNodeTestsDependencies::setViewNodeAttribute(const Ref<ViewNode>& viewNode,
91 const char* attribute,
92 const Value& attributeValue) {
93 auto attributeId = _attributesManager.getAttributeIds().getIdForName(std::string_view(attribute));
94 viewNode->setAttribute(*_viewTransactionScope,
95 attributeId,
96 AttributeOwner::getNativeOverridenAttributeOwner(),
97 attributeValue,
98 nullptr);
99}
100
101void ViewNodeTestsDependencies::setViewNodeFrame(
102 const Ref<ViewNode>& viewNode, double x, double y, double width, double height) {

Callers 3

TESTFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 2

getIdForNameMethod · 0.80
setAttributeMethod · 0.65

Tested by

no test coverage detected