MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / test_color

Function test_color

crates/opencode-util/src/util.rs:333–337  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331
332 #[test]
333 fn test_color() {
334 let input = "\x1b[32mhello\x1b[0m";
335 assert_eq!(color::strip_ansi(input), "hello");
336 assert_eq!(color::ansi_length(input), 5);
337 }
338}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected