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

go-logfmt / logfmt
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: fix/escape-del-char
DEFAULT BRANCH: master
Repo Added 14 May 2016 02:21AM UTC
Files 3
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

LAST BUILD ON BRANCH feature/fewer-errors
branch: feature/fewer-errors
CHANGE BRANCH
x
Reset
  • feature/fewer-errors
  • develop
  • feature/coverage
  • feature/github-actions
  • feature/go1.17
  • fix/escape-del-char
  • main
  • master
  • refs/tags/v0.5.1
  • refs/tags/v0.6.0
  • v0.3.0
  • v0.4.0
  • v0.5.0

20 Nov 2018 06:59AM UTC coverage: 84.3% (-0.05%) from 84.354%
76

Pull #8

travis-ci

web-flow
Drop invalid runes from keys instead of returning ErrInvalidKey

Experience has shown that including invalid runes (especially spaces) in
keys is the most common mistake when encoding. Returning an error for keys
containing invalid runes is not helpful because log packages often discard
the field or entire record when there is an encoding error. But missing
log data surprises application developers that don't understand why it
was discarded.

I considered two ways to handle bad runes in keys, optionally replacing
them with a different configurable rune, or dropping the bad runes from
they key. The first approach requires expanding the API and adding some
complexity to the implementation of Encoder. The second choice does not
change the API and, thanks to the strings.Map and bytes.Map functions,
slightly simplifies the implementation; so I chose it.
Pull Request #8: Fewer errors

11 of 11 new or added lines in 1 file covered. (100.0%)

494 of 586 relevant lines covered (84.3%)

133.12 hits per line

Relevant lines Covered
Build:
Build:
586 RELEVANT LINES 494 COVERED LINES
133.12 HITS PER LINE
Source Files on feature/fewer-errors
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
76 feature/fewer-errors Drop invalid runes from keys instead of returning ErrInvalidKey Experience has shown that including invalid runes (especially spaces) in keys is the most common mistake when encoding. Returning an error for keys containing invalid runes is not he... Pull #8 20 Nov 2018 07:05AM UTC web-flow travis-ci
84.3
75 feature/fewer-errors Drop invalid runes from keys instead of returning ErrInvalidKey Experience has shown that including invalid runes (especially spaces) in keys is the most common mistake when encoding. Returning an error for keys containing invalid runes is not he... push 20 Nov 2018 06:58AM UTC ChrisHines travis-ci
84.3
See All Builds (309)
  • Repo on GitHub
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