MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / theme_mode_display_and_parse

Function theme_mode_display_and_parse

crates/openshell-tui/src/theme.rs:320–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318
319 #[test]
320 fn theme_mode_display_and_parse() {
321 for mode in [ThemeMode::Auto, ThemeMode::Dark, ThemeMode::Light] {
322 let s = mode.to_string();
323 let parsed: ThemeMode = s.parse().unwrap();
324 assert_eq!(mode, parsed);
325 }
326
327 assert!("invalid".parse::<ThemeMode>().is_err());
328 }
329}

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected