(t *testing.T)
| 93 | } |
| 94 | |
| 95 | func TestBasicEngine_BudgetExceeded(t *testing.T) { |
| 96 | engine := NewBasicEngine(testConfig()) |
| 97 | decision, err := engine.Evaluate(context.Background(), types.AIRequest{ |
| 98 | TenantID: "team-a", |
| 99 | TaskType: "simple", |
| 100 | Options: types.RequestOptions{MaxTokens: 2000}, |
| 101 | }) |
| 102 | if err != nil { |
| 103 | t.Fatalf("unexpected error: %v", err) |
| 104 | } |
| 105 | if decision.Allowed { |
| 106 | t.Fatalf("expected budget rejection") |
| 107 | } |
| 108 | } |
nothing calls this directly
no test coverage detected