()
| 1371 | |
| 1372 | #[test] |
| 1373 | fn test_model_usage_display() { |
| 1374 | let m = ModelUsage::new("claude-sonnet-4-5") |
| 1375 | .with_input(176) |
| 1376 | .with_output(8400) |
| 1377 | .with_cache_read(526_900) |
| 1378 | .with_cost(0.56); |
| 1379 | |
| 1380 | let display = format!("{}", m); |
| 1381 | assert!(display.contains("claude-sonnet-4-5")); |
| 1382 | assert!(display.contains("input")); |
| 1383 | assert!(display.contains("output")); |
| 1384 | assert!(display.contains("cache read")); |
| 1385 | assert!(display.contains("$0.56")); |
| 1386 | } |
| 1387 | |
| 1388 | #[test] |
| 1389 | fn test_model_usage_display_small_cost() { |
nothing calls this directly
no test coverage detected