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

go-logfmt / logfmt / 77
84%
master: 84%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 20 Nov 2018 07:12AM UTC
Jobs 4
Files 3
Run time 2min
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

20 Nov 2018 07:11AM UTC coverage: 84.3% (-0.05%) from 84.354%
77

push

travis-ci

ChrisHines
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.

494 of 586 relevant lines covered (84.3%)

106.45 hits per line

Jobs
ID Job ID Ran Files Coverage
1 77.1 20 Nov 2018 07:12AM UTC 0
84.3
Travis Job 77.1
2 77.2 20 Nov 2018 07:13AM UTC 0
84.3
Travis Job 77.2
3 77.3 20 Nov 2018 07:13AM UTC 0
84.3
Travis Job 77.3
4 77.4 20 Nov 2018 07:15AM UTC 0
84.3
Travis Job 77.4
Source Files on build 77
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #77
  • 11fd5686 on github
  • Prev Build on develop (#74)
  • Next Build on develop (#78)
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