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

minetest-go / mtdb / 7014852901
84%

Build:
DEFAULT BRANCH: master
Ran 28 Nov 2023 06:05AM UTC
Jobs 1
Files 19
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

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

New Missed Lines in Diff

Lines Coverage ∆ File
4
70.0
-5.0% block/block.go
4
83.33
4.67% block/block_postgres.go
4
85.71
4.58% block/block_sqlite.go
Jobs
ID Job ID Ran Files Coverage
1 7014852901.1 28 Nov 2023 06:05AM UTC 19
82.16
GitHub Action Run
Source Files on build 7014852901
  • Tree
  • List 19
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 990b478a on github
  • Prev Build on master (#6604710101)
  • Next Build on master (#7051694704)
  • Delete
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

© 2025 Coveralls, Inc