(t *testing.T)
| 94 | } |
| 95 | |
| 96 | func TestProcessAttachment_PNG_Passthrough(t *testing.T) { |
| 97 | t.Parallel() |
| 98 | data := encodePNGBytes(100, 100, false) |
| 99 | path := writeTempFile(t, ".png", data) |
| 100 | |
| 101 | doc, err := chat.ProcessAttachment(t.Context(), chat.MessagePart{ |
| 102 | Type: chat.MessagePartTypeFile, |
| 103 | File: &chat.MessageFile{Path: path, MimeType: "image/png"}, |
| 104 | }) |
| 105 | require.NoError(t, err) |
| 106 | assert.Equal(t, "image/png", doc.MimeType) |
| 107 | assert.NotEmpty(t, doc.Source.InlineData) |
| 108 | } |
| 109 | |
| 110 | func TestProcessAttachment_PNG_WithAlpha_StaysPNG(t *testing.T) { |
| 111 | t.Parallel() |
nothing calls this directly
no test coverage detected