(t *testing.T)
| 238 | } |
| 239 | |
| 240 | func 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 | |
| 250 | func Test_Send_RejectsWhitespace(t *testing.T) { |
| 251 | tests := []struct { |
nothing calls this directly
no test coverage detected