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

mewkiz / flac / 107
44%
master: 66%

Build:
Build:
LAST BUILD BRANCH: v1.0.7
DEFAULT BRANCH: master
Ran 25 May 2018 05:45PM UTC
Jobs 1
Files 19
Run time 3min
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

pending completion
107

push

travis-ci

mewmew
meta: fix issue with errors.WithStack, io.Copy expect io.EOF

We cannot use errors.WithStack [1] to maintain call stack information
of zeros.Read as this method is invoked from io.Copy (in verifyPadding)
which expects io.EOF.

Note, the type of the returned error in the case of EOF becomes,
"errors.withStack" with the concrete value:
	errors.withStack{error: io.EOF, stack: callers()}

This broke the tests:

https://travis-ci.org/mewkiz/flac/builds/383805346#L540

We cannot update the standard library to check for io.EOF
using errors.Cause(err) == io.EOF. Thus, this seems like the
only solution.

Unfortunate, and a bit scare, as there may be other use of
interfaces which break since the error returned is wrapped
with added context.

Hope this gets resolved in Go 2. I know @bradfitz among others
have raised their interest in finding ways to improve and further
simplify error handling mechanisms [2].

[1]: https://github.com/pkg/errors
[2]: https://github.com/golang/go/wiki/Go2

Updates #22.

Related to golang/go#21161.

1131 of 1787 relevant lines covered (63.29%)

194946.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 107.1 25 May 2018 05:45PM UTC 0
63.29
Travis Job 107.1
Source Files on build 107
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #107
  • 6805a34d on github
  • Prev Build on errors (#106)
  • Next Build on errors (#108)
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