MCPcopy Create free account
hub / github.com/AI45Lab/Code / uncapped_never_denies

Function uncapped_never_denies

core/src/orchestration/workflow_budget.rs:179–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 2

usageFunction · 0.70
record_after_llmMethod · 0.45

Tested by

no test coverage detected