feat: add support of startOffset and endOffset#430
feat: add support of startOffset and endOffset#430frankyn merged 2 commits intogoogleapis:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #430 +/- ##
============================================
- Coverage 63.27% 63.15% -0.12%
+ Complexity 618 610 -8
============================================
Files 32 32
Lines 5113 5133 +20
Branches 486 490 +4
============================================
+ Hits 3235 3242 +7
- Misses 1713 1726 +13
Partials 165 165
Continue to review full report at Codecov.
|
| storage.list( | ||
| bucketName, | ||
| Storage.BlobListOption.startOffset("test-list-blobs-start-offset-blob"), | ||
| Storage.BlobListOption.endOffset("test-list-blobs-end-offset-blob3")); |
There was a problem hiding this comment.
Recommend starting from not the first object in the new objects.
There was a problem hiding this comment.
Replace this test with new one.
| Storage.BlobListOption.startOffset("test-list-blobs-start-offset-blob"), | ||
| Storage.BlobListOption.endOffset("test-list-blobs-end-offset-blob3")); | ||
| // Listing blobs is eventually consistent, we loop until the list is of the expected size. | ||
| while (Iterators.size(page.iterateAll().iterator()) != 3) { |
There was a problem hiding this comment.
I can't tell if this is working because it's using all the objects created during the test.
There was a problem hiding this comment.
@frankyn yes you are right, i have wrote new test instead of that. Now you can easily verify it.
|
@frankyn PTAL |
Fixes #424