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

Function plain_format_zero_timestamp

crates/openshell-tui/src/ui/sandbox_logs.rs:471–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

469
470 #[test]
471 fn plain_format_zero_timestamp() {
472 let log = LogLine {
473 timestamp_ms: 0,
474 level: "ERROR".to_string(),
475 source: "gateway".to_string(),
476 target: String::new(),
477 message: "fail".to_string(),
478 fields: HashMap::new(),
479 };
480 let result = format_log_line_plain(&log);
481 assert!(result.starts_with("--:--:-- gateway ERROR fail"));
482 }
483
484 #[test]
485 fn plain_format_connect_field_order() {

Callers

nothing calls this directly

Calls 1

format_log_line_plainFunction · 0.85

Tested by

no test coverage detected