Closed noahpistilli closed 2 months ago
Can you add some tests to this? Especially to check the boundaries/edge cases. Like count of 0, trying to pass in a page of -1 etc
Can you add some tests to this? Especially to check the boundaries/edge cases. Like count of 0, trying to pass in a page of -1 etc
Should I add bounds to PageMetadata.page
and PageMetadata.per
then? Right now it will gladly accept a negative page number and a value of 0
Can you add some tests to this? Especially to check the boundaries/edge cases. Like count of 0, trying to pass in a page of -1 etc
Should I add bounds to
PageMetadata.page
andPageMetadata.per
then? Right now it will gladly accept a negative page number and a value of0
Yes we definitely need tests and count checking for this
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 24.90%. Comparing base (
614d3ec
) to head (e796c6a
).
Unfortunately, because PageMetadata
is both public
and Codable
, this is a breaking change, and at this point I'm no longer accepting new features for Fluent 4. That being said, this functionality will be available in Fluent 5.
This PR adds the properties
hasNext
andhasPrevious
which are similar to the flask-sqlalchemy propertieshas_next
andhas_prev
.