• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

minetest-go / mtdb / 7014852901

28 Nov 2023 06:04AM UTC coverage: 82.158% (+0.8%) from 81.322%
7014852901

push

github

web-flow
feat: implement block iterator (#56)

* fix: sorry, too many connections.

database/Sql.Rows.Close() should be called as it is
a safe to call and idempotent; not calling it will keep the
underlying connection open.

Added an integration test to reproduce the issue
and a fix to it.

Fixes #53

* feat: implement block iterator for map data.

The iterator returns a go channel to allow for
concurrent access over all the data in the map,
skipping any non-existing blocks.

Fix #55

* refactor: renamed to AsBlockPos.

* testing: added error handling for iterator.

Fixed an infinite loop/invalid results returned by
the Iterator if database/data is corrupted.

* feature: allow early-stopping the iterator.

Implemented the Closer type and methods to allow
for callers to early stop the iteretor when they're done.

93 of 105 new or added lines in 3 files covered. (88.57%)

944 of 1149 relevant lines covered (82.16%)

0.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/block/block_postgres.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc