Skip to content

Commit

Permalink
client: Add count getter for SearchObjectsOptions
Browse files Browse the repository at this point in the history
It is required for testing purposes.

Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Feb 21, 2025
1 parent 2dc274a commit 85a1e11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client/object_search.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ func (x *SearchObjectsOptions) WithBearerToken(bt bearer.Token) { x.bearerToken
// range. Defaults to 1000.
func (x *SearchObjectsOptions) SetCount(count uint32) { x.count = count }

// Count returns limit for the search result.
func (x *SearchObjectsOptions) Count() uint32 { return x.count }

Check warning on line 68 in client/object_search.go

View check run for this annotation

Codecov / codecov/patch

client/object_search.go#L68

Added line #L68 was not covered by tests

// SearchObjects selects objects from given container by applying specified
// filters, collects values of requested attributes and returns the result
// sorted. Elements are compared by attributes' values lexicographically in
Expand Down

0 comments on commit 85a1e11

Please sign in to comment.