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

gookit / goutil / 40188095025
87%

Build:
DEFAULT BRANCH: master
Ran 25 Oct 2026 11:16AM UTC
Jobs 6
Files 225
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

25 Oct 2026 11:15AM UTC coverage: 87.305% (-0.006%) from 87.311%
40188095025

push

github

inhere
fix(maputil): support the bracket index on the top key of SetByPath

SetByKeys() short circuited a single key and the deep make, so a top key with
a slice index was written as a literal key:

  SetByPath(&mp, "list[1]", "b")
  // before: mp["list[1]"] = "b"
  // now:    mp["list"] = []string{"", "b"}

- route a key that contains a slice index into setMapByKeys(), which already
  knows how to update, grow and create the slice value. it also fixes a deep
  path like "list[0].name", which wrote the literal "list[0]" key too.
- a value that is not assignable to the slice elem type panicked with
  "reflect.Set: value of type ... is not assignable to type ...", it returns
  an error now and the data is left as it was. A nil value is turned into the
  zero value of the elem type, so it can be set to a nil-able elem type.

Tests: the top index key (update, append, create, deep path, negative index)
and the type mismatch for the top key, the index key and the nested bracket,
plus the nil value cases.

27 of 29 new or added lines in 1 file covered. (93.1%)

2 existing lines in 1 file now uncovered.

16106 of 18448 relevant lines covered (87.3%)

5.64 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
64.77
2.37% maputil/setval.go

Coverage Regressions

Lines Coverage ∆ File
2
90.12
-1.23% strutil/gensn.go
Jobs
ID Job ID Ran Files Coverage
1 Go-1.24 - 40188095025.1 25 Oct 2026 11:16AM UTC 225
84.85
GitHub Action Run
2 Go-stable - 40188095025.2 25 Oct 2026 11:16AM UTC 225
83.99
GitHub Action Run
3 Go-1.21 - 40188095025.3 25 Oct 2026 11:15AM UTC 220
86.67
GitHub Action Run
4 Go-1.23 - 40188095025.4 25 Oct 2026 11:16AM UTC 225
85.62
GitHub Action Run
5 Go-1.25 - 40188095025.5 25 Oct 2026 11:16AM UTC 225
84.85
GitHub Action Run
6 Go-1.19 - 40188095025.6 25 Oct 2026 11:16AM UTC 220
86.67
GitHub Action Run
Source Files on build 40188095025
  • Tree
  • List 225
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • a6a419ac on github
  • Prev Build on master (#40157136773)
  • Next Build on master (#40504890076)
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