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

MapColonies / shigola / cd44d2f6f
57%
master: 44%

Build:
Build:
LAST BUILD BRANCH: chore/drop-vendor
DEFAULT BRANCH: master
Ran 23 Sep 2026 02:00PM UTC
Jobs 1
Files 127
Run time 1min
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

23 Sep 2026 01:56PM UTC coverage: 56.751% (+0.6%) from 56.161%
cd44d2f6f

push

github

web-flow
fix(config): say what type a key takes when its value will not parse (MAPCO-11617) (#34)

* fix(env): name the value and the wanted type in parse errors (MAPCO-11617)

ErrType formatted its value with %t, the boolean verb, so every wrong-typed
config value read "type %!t(int64=1) could not be converted". It now names
the value and what it should have been: `1 (int64) is not a boolean (true
or false)`.

A string that does not parse as a bool, int, uint or float now returns the
same error instead of strconv's text, which named a Go function rather
than the config.

The two ErrType sites in dict.go know their key, so they return
dict.ErrKeyType like every other branch in that file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(config): say what type a key takes when its value will not parse (MAPCO-11617)

A value the TOML lexer cannot read, like `serve_layer_collections = xx`,
is rejected before any type reaches our code, so the error could only say
it "expected value". toml.ParseError records the key, though, and the key
names a field of Config. Parse now walks Config through its toml tags to
that field and appends what it takes:

  Near line 3 (last key parsed 'maps.serve_layer_collections'):
  expected value but found "xx" instead
  (maps.serve_layer_collections takes a boolean, true or false)

The hint is read off the field's kind, so it cannot go stale as keys are
added. It is given only for kinds that are unambiguous: env.URL is a
struct written as a string and env.Dict is a table of anything, so
structs, maps and arrays of tables stay silent, as does any type that
decodes itself outside env. The result wraps the ParseError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* refactor(config): tidy the type hint after review (MAPCO-11617)

Name the singular/plural hint pair instead of indexing a [2]string, share
the pointer-stripping loop, and describe every int, uint and float width
rather than only the ones Config uses t... (continued)

114 of 123 new or added lines in 5 files covered. (92.68%)

2 existing lines in 1 file now uncovered.

6019 of 10606 relevant lines covered (56.75%)

121.34 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
94.05
config/type_hint.go
2
59.5
0.0% internal/env/dict.go
2
74.78
11.23% internal/env/parse.go

Coverage Regressions

Lines Coverage ∆ File
2
84.13
-0.51% config/config.go
Jobs
ID Job ID Ran Files Coverage
1 cd44d2f6f.1 23 Sep 2026 02:00PM UTC 127
56.75
GitHub Action Run
Source Files on build cd44d2f6f
  • Tree
  • List 127
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cd44d2f6 on github
  • Prev Build on development (#04B10A2B8)
  • Next Build on development (#9422F8C61)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc