()
| 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() { |
nothing calls this directly
no test coverage detected