()
| 850 | |
| 851 | #[test] |
| 852 | fn test_model_usage_display() { |
| 853 | let m = ModelUsage::new("claude-sonnet-4-5") |
| 854 | .with_input(176) |
| 855 | .with_output(8400) |
| 856 | .with_cache_read(526_900) |
| 857 | .with_cost(0.56); |
| 858 | |
| 859 | let display = format!("{}", m); |
| 860 | assert!(display.contains("claude-sonnet-4-5")); |
| 861 | assert!(display.contains("input")); |
| 862 | assert!(display.contains("output")); |
| 863 | assert!(display.contains("cache read")); |
| 864 | assert!(display.contains("$0.56")); |
| 865 | } |
| 866 | |
| 867 | #[test] |
| 868 | fn test_model_usage_display_small_cost() { |
nothing calls this directly
no test coverage detected