From 6ad6f122eb2ec9cd8a55c042dffe38db41ed1959 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 18:04:59 +0200 Subject: test(notify): cover image-data materialisation TestNotifyMaterialisesImageData drives a 2x2 RGBA image-data hint through Notify and asserts the PNG is written under the image directory for the returned id, decodes to the right bounds, and is carried on the re-published Popup.Image. The encode-error path now logs instead of dropping the failure silently, matching the WriteImage branch. --- internal/notify/service.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/notify/service.go') diff --git a/internal/notify/service.go b/internal/notify/service.go index 7bfad6e..a8f0728 100644 --- a/internal/notify/service.go +++ b/internal/notify/service.go @@ -118,6 +118,8 @@ func (s *Service) Notify(appName string, replacesID uint32, appIcon, summary, bo if raw, ok := ImageDataFromHints(hints); ok { if data, err := raw.PNG(); err == nil { pendingImage = data + } else { + log.Printf("notifyd: encode image: %v", err) } } else if path, ok := ImagePathFromHints(hints); ok { n.Image = ResolveIcon(path) -- cgit v1.2.3