mirror of
https://github.com/pgsty/minio.git
synced 2026-07-19 20:20:25 +03:00
Parse response headers in tests
This commit is contained in:
@@ -54,15 +54,11 @@ func generateBucketsListResult(buckets []drivers.BucketMetadata) BucketListRespo
|
||||
return data
|
||||
}
|
||||
|
||||
// itemKey
|
||||
type itemKey []*Item
|
||||
|
||||
// Len
|
||||
func (b itemKey) Len() int { return len(b) }
|
||||
|
||||
// Swap
|
||||
func (b itemKey) Swap(i, j int) { b[i], b[j] = b[j], b[i] }
|
||||
|
||||
// Less
|
||||
func (b itemKey) Len() int { return len(b) }
|
||||
func (b itemKey) Swap(i, j int) { b[i], b[j] = b[j], b[i] }
|
||||
func (b itemKey) Less(i, j int) bool { return b[i].Key < b[j].Key }
|
||||
|
||||
// takes a set of objects and prepares the objects for serialization
|
||||
|
||||
Reference in New Issue
Block a user