MCPcopy Index your code
hub / github.com/docker/docker-agent / TestProcessAttachment_NilFile_Error

Function TestProcessAttachment_NilFile_Error

pkg/chat/attach_test.go:214–221  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

212}
213
214func TestProcessAttachment_NilFile_Error(t *testing.T) {
215 t.Parallel()
216 _, err := chat.ProcessAttachment(t.Context(), chat.MessagePart{
217 Type: chat.MessagePartTypeFile,
218 File: nil,
219 })
220 require.Error(t, err)
221}
222
223// ──────────────────────────────────────────────────────────────────────────────
224// ProcessAttachment — MessagePartTypeImageURL

Callers

nothing calls this directly

Calls 3

ProcessAttachmentFunction · 0.92
ContextMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected