Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anushka567 committed Nov 5, 2024
1 parent f5d25cc commit f25156b
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions internal/storage/fake/testing/bucket_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,28 +426,28 @@ func (t *bucketTest) matchesStartTime(start time.Time) Matcher {
}

// Given gcs.minObject and gcs.extendedObjectAttributes , assert on attributes of gcs.Object
func (t *bucketTest) assertOnObjectAttributes(minObj *gcs.MinObject, extendedAttr *gcs.ExtendedObjectAttributes, o *gcs.Object) {
ExpectThat(minObj.Name, Equals(o.Name))
ExpectThat(minObj.Size, Equals(o.Size))
ExpectThat(minObj.Generation, Equals(o.Generation))
ExpectThat(minObj.MetaGeneration, Equals(o.MetaGeneration))
ExpectThat(minObj.Updated, DeepEquals(o.Updated))
ExpectThat(minObj.Metadata, DeepEquals(o.Metadata))
ExpectThat(minObj.ContentEncoding, Equals(o.ContentEncoding))
ExpectThat(minObj.CRC32C, Equals(o.CRC32C))
ExpectThat(extendedAttr.ContentType, Equals(o.ContentType))
ExpectThat(extendedAttr.ContentLanguage, Equals(o.ContentLanguage))
ExpectThat(extendedAttr.CacheControl, Equals(o.CacheControl))
ExpectThat(extendedAttr.Owner, Equals(o.Owner))
ExpectThat(extendedAttr.MD5, Equals(o.MD5))
ExpectThat(extendedAttr.MediaLink, Equals(o.MediaLink))
ExpectThat(extendedAttr.StorageClass, Equals(o.StorageClass))
ExpectThat(extendedAttr.Deleted, DeepEquals(o.Deleted))
ExpectThat(extendedAttr.ComponentCount, Equals(o.ComponentCount))
ExpectThat(extendedAttr.ContentDisposition, Equals(o.ContentDisposition))
ExpectThat(extendedAttr.CustomTime, Equals(o.CustomTime))
ExpectThat(extendedAttr.EventBasedHold, Equals(o.EventBasedHold))
ExpectThat(extendedAttr.Acl, DeepEquals(o.Acl))
func (t *bucketTest) assertOnObjectAttributes(expectedMinObj *gcs.MinObject, expectedExtendedAttr *gcs.ExtendedObjectAttributes, o *gcs.Object) {
ExpectThat(expectedMinObj.Name, Equals(o.Name))
ExpectThat(expectedMinObj.Size, Equals(o.Size))
ExpectThat(expectedMinObj.Generation, Equals(o.Generation))
ExpectThat(expectedMinObj.MetaGeneration, Equals(o.MetaGeneration))
ExpectThat(expectedMinObj.Updated, DeepEquals(o.Updated))
ExpectThat(expectedMinObj.Metadata, DeepEquals(o.Metadata))
ExpectThat(expectedMinObj.ContentEncoding, Equals(o.ContentEncoding))
ExpectThat(expectedMinObj.CRC32C, Equals(o.CRC32C))
ExpectThat(expectedExtendedAttr.ContentType, Equals(o.ContentType))
ExpectThat(expectedExtendedAttr.ContentLanguage, Equals(o.ContentLanguage))
ExpectThat(expectedExtendedAttr.CacheControl, Equals(o.CacheControl))
ExpectThat(expectedExtendedAttr.Owner, Equals(o.Owner))
ExpectThat(expectedExtendedAttr.MD5, Equals(o.MD5))
ExpectThat(expectedExtendedAttr.MediaLink, Equals(o.MediaLink))
ExpectThat(expectedExtendedAttr.StorageClass, Equals(o.StorageClass))
ExpectThat(expectedExtendedAttr.Deleted, DeepEquals(o.Deleted))
ExpectThat(expectedExtendedAttr.ComponentCount, Equals(o.ComponentCount))
ExpectThat(expectedExtendedAttr.ContentDisposition, Equals(o.ContentDisposition))
ExpectThat(expectedExtendedAttr.CustomTime, Equals(o.CustomTime))
ExpectThat(expectedExtendedAttr.EventBasedHold, Equals(o.EventBasedHold))
ExpectThat(expectedExtendedAttr.Acl, DeepEquals(o.Acl))
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit f25156b

Please sign in to comment.