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

kentik / patricia / 6594427219 / 1
80%
main: 80%

Build:
Build:
LAST BUILD BRANCH: refs/tags/v1.2.2
DEFAULT BRANCH: main
Ran 21 Oct 2023 01:36AM UTC
Files 17
Run time 0s
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

21 Oct 2023 01:32AM UTC coverage: 80.199% (-0.2%) from 80.404%
6594427219.1

push

github

web-flow
Add *Update methods to update an existing tag (#24)

This is useful to avoid a double lookup: once to find the current
value, the second time to update its value. The tag could be a counter
we want to update or, with the generics tree, any struct/map.

`SetOrUpdate()` is the same as `Set()`, but when there already is a
tag, it is passed to the provided update function instead of being
replaced by the provided tag value. If no match, the provided tag
value is used instead.

`AddOrUpdate()` is the same as `Add()` and works like `Set()` except
it will append a tag (when no match) or modify the first matching
tag (when there is a match).

Both functions take a tag value which is used when the existing tag
does not exist (no tag for `SetOrUpdate()` or no matching tag for
`AddOrUpdate()`). Both functions take an update function which is used
when there is an existing tag and the update function is applied on
the existing tag to get another tag. The provided tag is therefore
ignored in this case.

2341 of 2919 relevant lines covered (80.2%)

729443.57 hits per line

Source Files on job 6594427219.1
  • Tree
  • List 0
  • Changed 8
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 6594427219
  • 96387d0f on github
  • Prev Job for on refs/tags/v1.2.1 (#6594271796.1)
  • 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

© 2026 Coveralls, Inc