forked from googleapis/google-cloud-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: add StartOffset and more tests for NewRangeReader
* Adds StartOffset to ReaderObjectAttrs, which for range requests is the value from which the read began * Updates the range reader integration tests to also test negative offsets aka offsets from the end of the file * Adds integration tests for the various styles of reading the same last n bytes from a file * Adds example tests to show the various styles of using (*ObjectHandle).NewRangeReader * Replaces CL https://code-review.googlesource.com/c/gocloud/+/44132 for which the original author @brimworks no longer has Gerrit access due to job changes Updates googleapis#1540. Change-Id: I56b7777cc46e3c501593e92e27a7c083a729fed5 Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/44610 Reviewed-by: Frank Natividad <franknatividad@google.com> Reviewed-by: kokoro <noreply+kokoro@google.com>
- Loading branch information
Showing
4 changed files
with
137 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters