Skip to content

Commit

Permalink
fix test by rerunning mockgen
Browse files Browse the repository at this point in the history
  • Loading branch information
xelat09 committed Jan 20, 2025
1 parent 874f79e commit 7607b93
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions pkg/azurestore/azureservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ func (blockBlob *BlockBlob) Download(ctx context.Context) (io.ReadCloser, error)

// Serve content respecting range header
func (blockBlob *BlockBlob) ServeContent(ctx context.Context, w http.ResponseWriter, r *http.Request) error {
var downloadOptions, err = parseDownloadOptions(r)
var downloadOptions, err = ParseDownloadOptions(r)
if err != nil {
return err
}
Expand Down Expand Up @@ -378,7 +378,7 @@ func checkForNotFoundError(err error) error {
}

// parse the Range, If-Match, If-None-Match, If-Unmodified-Since, If-Modified-Since headers if present
func parseDownloadOptions(r *http.Request) (*azblob.DownloadStreamOptions, error) {
func ParseDownloadOptions(r *http.Request) (*azblob.DownloadStreamOptions, error) {
input := azblob.DownloadStreamOptions{AccessConditions: &azblob.AccessConditions{}}

if val := r.Header.Get("Range"); val != "" {
Expand Down
28 changes: 14 additions & 14 deletions pkg/azurestore/azurestore_mock_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7607b93

Please sign in to comment.