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

Function condition_normal_exit

crates/openshell-driver-podman/src/watcher.rs:428–442  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

426
427 #[test]
428 fn condition_normal_exit() {
429 let state = ContainerState {
430 status: "exited".to_string(),
431 running: false,
432 exit_code: 1,
433 oom_killed: false,
434 health: None,
435 started_at: None,
436 finished_at: Some("2026-04-14T12:00:00Z".to_string()),
437 };
438 let cond = condition_from_state(&state);
439 assert_eq!(cond.status, "False");
440 assert_eq!(cond.reason, "ContainerExited");
441 assert!(cond.message.contains("code 1"));
442 }
443
444 #[test]
445 fn short_id_truncates() {

Callers

nothing calls this directly

Calls 1

condition_from_stateFunction · 0.85

Tested by

no test coverage detected