Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docstore/all: Fix offset handling and extend test coverage #3409

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

bartventer
Copy link
Contributor

This PR is a continuation of PR #3408 and includes additional changes:

  • Fixes offset handling for RunGetQuery in docstore/memdocstore.
  • Increases test coverage for documentIterator.Next in docstore/awsdynamodb. I'm not sure how realistic these test cases are, I can remove them if they don't add value.
  • Extends test coverage for Limit/Offset related queries in docstore.

I also generated new replay files for awsdynamodb and gcpfirestore.

vangent and others added 4 commits March 22, 2024 01:03
…to AWS returns an empty set, but there's still more data
This commit adjusts `RunGetQuery` to return an empty slice when the offset is greater than or equal to the result set length, previously this was not handled correctly.
…or.Next

This commit enhances the test coverage for `documentIterator.Next` in `docstore/awsdynamodb/query_test.go`.

Related: google#3408
…ries

- This commit extends the test coverage for Offset and Limit related queries in `docstore/drivertest/drivertest.go`.
- Added additional test cases for `Limit` and `Offset` to `TestInvalidQuery` in `docstore/query_test.go`.

Related: google#3408
Copy link

codecov bot commented Mar 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.26%. Comparing base (be1b4ae) to head (9d139c9).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3409      +/-   ##
==========================================
+ Coverage   73.12%   73.26%   +0.13%     
==========================================
  Files         113      113              
  Lines       14864    14869       +5     
==========================================
+ Hits        10870    10894      +24     
+ Misses       3219     3207      -12     
+ Partials      775      768       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants