MCPcopy Create free account
hub / github.com/coder/agentapi / Test_Send_RejectsEmptyMessage

Function Test_Send_RejectsEmptyMessage

x/acpio/acp_conversation_test.go:240–248  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

238}
239
240func Test_Send_RejectsEmptyMessage(t *testing.T) {
241 mClock := quartz.NewMock(t)
242 mock := newMockAgentIO()
243 conv := acpio.NewACPConversation(context.Background(), mock, nil, nil, nil, mClock)
244
245 err := conv.Send(screentracker.MessagePartText{Content: ""})
246
247 assert.ErrorIs(t, err, screentracker.ErrMessageValidationEmpty)
248}
249
250func Test_Send_RejectsWhitespace(t *testing.T) {
251 tests := []struct {

Callers

nothing calls this directly

Calls 3

SendMethod · 0.95
NewACPConversationFunction · 0.92
newMockAgentIOFunction · 0.85

Tested by

no test coverage detected