@@ -294,54 +294,45 @@ func TestUploadAttachmentDetailDO2DTO(t *testing.T) {
294294 input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentTypeText )},
295295 expected : & app_eval_set.UploadAttachmentDetail {
296296 ContentType : gptr .Of (dataset .ContentType_Text ),
297- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
298297 },
299298 },
300299 {
301300 name : "image content type" ,
302301 input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentTypeImage )},
303302 expected : & app_eval_set.UploadAttachmentDetail {
304303 ContentType : gptr .Of (dataset .ContentType_Image ),
305- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
306304 },
307305 },
308306 {
309307 name : "audio content type" ,
310308 input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentTypeAudio )},
311309 expected : & app_eval_set.UploadAttachmentDetail {
312310 ContentType : gptr .Of (dataset .ContentType_Audio ),
313- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
314311 },
315312 },
316313 {
317314 name : "video content type" ,
318315 input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentTypeVideo )},
319316 expected : & app_eval_set.UploadAttachmentDetail {
320317 ContentType : gptr .Of (dataset .ContentType_Video ),
321- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
322318 },
323319 },
324320 {
325321 name : "multipart content type" ,
326322 input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentTypeMultipart )},
327323 expected : & app_eval_set.UploadAttachmentDetail {
328324 ContentType : gptr .Of (dataset .ContentType_MultiPart ),
329- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
330325 },
331326 },
332327 {
333- name : "unknown content type" ,
334- input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentType ("unknown" ))},
335- expected : & app_eval_set.UploadAttachmentDetail {
336- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
337- },
328+ name : "unknown content type" ,
329+ input : & entity.UploadAttachmentDetail {ContentType : gptr .Of (entity .ContentType ("unknown" ))},
330+ expected : & app_eval_set.UploadAttachmentDetail {},
338331 },
339332 {
340- name : "nil content type" ,
341- input : & entity.UploadAttachmentDetail {},
342- expected : & app_eval_set.UploadAttachmentDetail {
343- ErrorType : gptr .Of (dataset .ItemErrorType (0 )),
344- },
333+ name : "nil content type" ,
334+ input : & entity.UploadAttachmentDetail {},
335+ expected : & app_eval_set.UploadAttachmentDetail {},
345336 },
346337 {
347338 name : "full fields" ,
0 commit comments