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

Function TEST_F

valdi/test/snap_drawing/ImageLoader_tests.cpp:100–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98};
99
100TEST_F(ImageLoaderTests, returnsErrorIfDownloaderFails) {
101 auto result = loadImage(_downloadErrorUrl, getWidth(), getHeight());
102 ASSERT_TRUE(result.failure());
103 ASSERT_TRUE(result.error().toString() == _errMsg.toStringView());
104}
105
106TEST_F(ImageLoaderTests, returnsErrorIfDataCannotBeConvertedToImage) {
107 auto result = loadImage(_dataErrorUrl, getWidth(), getHeight());

Callers

nothing calls this directly

Calls 15

loadImageFunction · 0.85
getDownloadRequestsMethod · 0.80
setBlurRadiusMethod · 0.80
concatColorMatrixMethod · 0.80
getBlurRadiusMethod · 0.80
getColorMatrixMethod · 0.80
toStringMethod · 0.65
errorMethod · 0.65
getMethod · 0.65
ValueInterface · 0.50
failureMethod · 0.45
toStringViewMethod · 0.45

Tested by

no test coverage detected