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

Method requestPayloadFromURL

valdi/test/utils/MockAssetLoader.cpp:68–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68Valdi::Result<Valdi::Value> MockAssetLoader::requestPayloadFromURL(const Valdi::StringBox& url) {
69 {
70 std::lock_guard<Mutex> lock(_mutex);
71 _requestPayloadCount++;
72
73 if (_payloadError) {
74 return _payloadError.value();
75 }
76 }
77
78 return Valdi::Value(url);
79}
80
81Shared<snap::valdi_core::Cancelable> MockAssetLoader::loadAsset(const Value& requestPayload,
82 int32_t preferredWidth,

Callers 1

loadImageMethod · 0.45

Calls 2

valueMethod · 0.65
ValueInterface · 0.50

Tested by

no test coverage detected