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

Function detect_explicit_modes

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

Source from the content-addressed store, hash-verified

308
309 #[test]
310 fn detect_explicit_modes() {
311 // Explicit modes bypass env detection.
312 let dark = detect(ThemeMode::Dark);
313 let light = detect(ThemeMode::Light);
314
315 assert_eq!(dark.text, Theme::dark().text);
316 assert_eq!(light.text, Theme::light().text);
317 }
318
319 #[test]
320 fn theme_mode_display_and_parse() {

Callers

nothing calls this directly

Calls 1

detectFunction · 0.85

Tested by

no test coverage detected