(ctx context.Context, req types.AIRequest)
| 18 | } |
| 19 | |
| 20 | func (s *stubPolicy) Evaluate(ctx context.Context, req types.AIRequest) (types.PolicyDecision, error) { |
| 21 | if s.err != nil { |
| 22 | return types.PolicyDecision{}, s.err |
| 23 | } |
| 24 | return s.decision, nil |
| 25 | } |
| 26 | |
| 27 | type stubRouter struct { |
| 28 | primary types.RouteDecision |
nothing calls this directly
no outgoing calls
no test coverage detected