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

uber-go / zap / 1662
97%

Build:
DEFAULT BRANCH: master
Ran 23 Mar 2017 08:35PM UTC
Jobs 2
Files 0
Run time 2s
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
1662

push

travis-ci

akshayjshah
Make caller path trimming Windows-compatible (#385)

Go stdlib runtime.Caller() currently returns forward slashes on Windows (see golang/go#3335) which causes EntryCaller.TrimmedPath() to return full paths instead of the expected trimmed paths on Windows. This is because EntryCaller.TrimmedPath() uses os.PathSeparator to trim the path which is '' on Windows. According to the discussion on the Go bug, it seems like os.PathSeparator might be '' in some cases on Unix too so might cause issues on non-Windows platforms too.

This PR replaces the two occurrences of os.PathSeparator with ''/' as that is what runtime.Caller() currently produces on all platforms.

Did not add tests, as the existing tests for TrimmedPath() failed on Windows with master and work with this PR.

Fixes: #382
See also: golang/go#18151

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

2230 of 2303 relevant lines covered (96.83%)

71662.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1662.1 23 Mar 2017 08:35PM UTC 0
96.83
Travis Job 1662.1
2 1662.2 23 Mar 2017 08:35PM UTC 0
96.83
Travis Job 1662.2
Source Files on build 1662
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1662
  • 16dc29a0 on github
  • Prev Build on master (#1657)
  • Next Build on master (#1665)
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