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

Method getConfigKey

valdi/src/valdi/runtime/ValdiRuntimeTweaks.cpp:21–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19namespace Valdi {
20
21bool ValdiRuntimeTweaks::getConfigKey(const char* key) const {
22 auto configKey = StringCache::getGlobal().makeStringFromLiteral(std::string_view(key));
23 return _tweakValueProvider->getBool(configKey, false);
24}
25
26ValdiRuntimeTweaks::ValdiRuntimeTweaks(const Shared<ITweakValueProvider>& tweakValueProvider)
27 : _tweakValueProvider(tweakValueProvider) {}

Callers

nothing calls this directly

Calls 3

getGlobalFunction · 0.85
makeStringFromLiteralMethod · 0.80
getBoolMethod · 0.45

Tested by

no test coverage detected