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

Function TEST_F

valdi/test/snap_drawing/ImageCache_tests.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84};
85
86TEST_F(ImageCacheTests, getUpscaleReturnOriginalSize) {
87 auto result = getImage(_url, getWidth() * 2, getHeight() * 2);
88
89 ASSERT_FALSE(result.failure());
90 auto image = result.moveValue();
91
92 ASSERT_TRUE(image->width() == getWidth());
93 ASSERT_TRUE(image->height() == getHeight());
94}
95
96TEST_F(ImageCacheTests, requestingOriginalDimensionReturnOriginalSize) {
97 auto result = getImage(_url, getWidth(), getHeight());

Callers

nothing calls this directly

Calls 9

createTestBitmapFunction · 0.85
use_countMethod · 0.80
getCurrentSizeMethod · 0.80
valueMethod · 0.65
failureMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
getVariantCountMethod · 0.45

Tested by

no test coverage detected