| 268 | } |
| 269 | |
| 270 | type fakeChatClient struct { |
| 271 | createChatFunc func(context.Context, codersdk.CreateChatRequest) (codersdk.Chat, error) |
| 272 | streamChatFunc func(context.Context, uuid.UUID, *codersdk.StreamChatOptions) (<-chan codersdk.ChatStreamEvent, io.Closer, error) |
| 273 | createChatMessageFunc func(context.Context, uuid.UUID, codersdk.CreateChatMessageRequest) (codersdk.CreateChatMessageResponse, error) |
| 274 | updateChatFunc func(context.Context, uuid.UUID, codersdk.UpdateChatRequest) error |
| 275 | } |
| 276 | |
| 277 | func newFakeChatClient(t *testing.T) *fakeChatClient { |
| 278 | t.Helper() |
nothing calls this directly
no outgoing calls
no test coverage detected