From 14bd251747875ff5796c4a8d81466adc4accb34f Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Thu, 19 Feb 2026 13:49:32 +0000 Subject: [PATCH] test: add unit test for IconManager::supports_themes with empty manager Add a unit test to verify that `IconManager::supports_themes` correctly returns `false` for any icon name when the manager is empty (initialized via `IconManager::new()`). This verifies the default behavior of the theme support mapping. Co-authored-by: bearice <270121+bearice@users.noreply.github.com> --- src/icon_manager.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/icon_manager.rs b/src/icon_manager.rs index 4cb2a51..0b1514c 100644 --- a/src/icon_manager.rs +++ b/src/icon_manager.rs @@ -251,3 +251,16 @@ impl Default for IconManager { Self::new() } } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_supports_themes_empty_manager() { + let manager = IconManager::new(); + assert!(!manager.supports_themes("cat")); + assert!(!manager.supports_themes("parrot")); + assert!(!manager.supports_themes("")); + } +}