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

Function TEST_P

valdi/test/snap_drawing/ImageCache_tests.cpp:267–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265};
266
267TEST_P(ImageCacheEvictionFixture, originalImageIsStoredAsLongAsVariantExist) {
268 auto result1 = getImage(_url, getWidth() / 2, getHeight() / 2);
269 _cache->invalidateCachedItems(_policy);
270 auto result2 = getImage(_url, getWidth(), getHeight());
271 ASSERT_FALSE(!result2);
272}
273
274TEST_P(ImageCacheEvictionFixture, originalIsErasedIfVariantIsntHeld) {
275 auto result1 = getImage(_url, getWidth() / 2, getHeight() / 2).moveValue();

Callers

nothing calls this directly

Calls 3

invalidateCachedItemsMethod · 0.80
getCurrentSizeMethod · 0.80
failureMethod · 0.45

Tested by

no test coverage detected