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

kentik / patricia / 6594427219
80%
main: 80%

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

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

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.

132 of 132 new or added lines in 4 files covered. (100.0%)

2341 of 2919 relevant lines covered (80.2%)

729443.57 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6594427219.1 21 Oct 2023 01:36AM UTC 0
80.2
GitHub Action Run
Source Files on build 6594427219
Detailed source file information is not available for this build.
  • Back to Repo
  • 96387d0f on github
  • Prev Build on main (#6594271796)
  • 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