()
| 177 | |
| 178 | #[tokio::test] |
| 179 | async fn uncapped_never_denies() { |
| 180 | let budget = WorkflowBudget::new(None); |
| 181 | budget.record_after_llm("a", &usage(1_000_000)).await; |
| 182 | assert!(!budget.is_exhausted()); |
| 183 | assert!(matches!( |
| 184 | budget.check_before_llm("s", 0).await, |
| 185 | BudgetDecision::Allow |
| 186 | )); |
| 187 | assert_eq!(budget.snapshot().remaining_tokens(), None); |
| 188 | } |
| 189 | |
| 190 | #[tokio::test] |
| 191 | async fn snapshot_reports_remaining() { |
nothing calls this directly
no test coverage detected