Gradle Test Run :app:testDevDebugUnitTest

StickerStorageTest

summary

27

tests

0

failures

0

skipped

4.199s

duration

100%

successful

Child Tests Failures Skipped Duration Success rate
addSticker overwrites existing file with same id 1 0 0 0.009s 100%
addSticker saves file and returns sticker 1 0 0 0.008s 100%
addSticker saves GIF with gif extension 1 0 0 0.007s 100%
addSticker saves PNG with png extension 1 0 0 0.006s 100%
addSticker saves unknown format as jpg 1 0 0 0.005s 100%
addSticker saves WebP with webp extension 1 0 0 0.013s 100%
addSticker starts with empty URL 1 0 0 0.007s 100%
backward compatible - updateStickerUrl migrates 2-field to 3-field 1 0 0 0.008s 100%
backward compatible index parsing - old 2-field format 1 0 0 0.008s 100%
getRecentStickers returns empty when no recents 1 0 0 0.008s 100%
getStickers returns added stickers 1 0 0 0.015s 100%
getStickers returns empty list when no stickers added 1 0 0 0.006s 100%
getStickers skips entries with deleted files 1 0 0 0.041s 100%
markAsRecent adds sticker to recents 1 0 0 0.009s 100%
markAsRecent limits to 20 entries 1 0 0 0.085s 100%
markAsRecent moves duplicate to front 1 0 0 0.013s 100%
moveSticker preserves URL fields 1 0 0 0.010s 100%
readStickerBytes returns correct data 1 0 0 0.006s 100%
readStickerBytes returns null for non-existent sticker 1 0 0 0.005s 100%
removeSticker also removes from recents 1 0 0 0.018s 100%
removeSticker deletes file and metadata 1 0 0 0.012s 100%
removeSticker for non-existent id does not crash 1 0 0 0.007s 100%
removeSticker works with non-jpg extensions 1 0 0 0.012s 100%
updateStickerUrl for non-existent id does not crash 1 0 0 0.008s 100%
updateStickerUrl overwrites previous URL 1 0 0 0.009s 100%
updateStickerUrl preserves other stickers 1 0 0 0.016s 100%
updateStickerUrl stores URL and getStickers returns it 1 0 0 3.836s 100%