(t *testing.T)
| 202 | } |
| 203 | |
| 204 | func TestProcessAttachment_MissingFile_Error(t *testing.T) { |
| 205 | t.Parallel() |
| 206 | _, err := chat.ProcessAttachment(t.Context(), chat.MessagePart{ |
| 207 | Type: chat.MessagePartTypeFile, |
| 208 | File: &chat.MessageFile{Path: "/nonexistent/path/file.jpg"}, |
| 209 | }) |
| 210 | require.Error(t, err) |
| 211 | assert.Contains(t, err.Error(), "cannot stat") |
| 212 | } |
| 213 | |
| 214 | func TestProcessAttachment_NilFile_Error(t *testing.T) { |
| 215 | t.Parallel() |
nothing calls this directly
no test coverage detected