added deleteAllStickers

fix crash when the uiimage isnt valid
swift 6 in the messages extension
added fakedownloadallstickers test
added deleteallimages test
This commit is contained in:
neon443
2025-10-31 15:57:40 +00:00
parent a55c4b8c31
commit bf3ac0eb3b
4 changed files with 34 additions and 3 deletions

View File

@@ -131,4 +131,24 @@ struct PerformanceTests {
try! await doThing(on: emoji, i: &i)
}
}
@Test func fakeDownloadAllStickers() async throws {
await withDiscardingTaskGroup { group in
for emoji in hoarder.emojis {
group.addTask {
try! Data().write(to: emoji.localImageURL)
}
}
}
}
@Test func deleteAllImages() async throws {
await withDiscardingTaskGroup { group in
for emoji in hoarder.emojis {
group.addTask {
emoji.deleteImage()
}
}
}
}
}