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

uber-go / fx / 2167
92%
master: 92%

Build:
Build:
LAST BUILD BRANCH: glue-dig-b3
DEFAULT BRANCH: master
Ran 08 Mar 2017 05:54PM UTC
Jobs 1
Files 53
Run time 3s
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
2167

push

travis-ci

abhinav
dig: Constructors can now return errors

This allows constructors to fail with an error.

    func NewMyResult(...) (*MyResult, error) {
        // ..
    }

The error is wrapped for every layer so that you get,

    unable to resolve Foo:
      unable to resolve *MyResult:
        root cause

This works by changing `funcNode`s to always be functions in the form,

    func(...) ($ResultType, error)

When constructors are initially registered, if they are in the no-error
form, we wrap them to always return a `nil` error.

30 of 30 new or added lines in 2 files covered. (100.0%)

2839 of 3099 relevant lines covered (91.61%)

25.65 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
100.0
dig/dig.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
dig/node.go
8
100.0
dig/dig.go
Jobs
ID Job ID Ran Files Coverage
2 2167.2 (V=1 COVERMODE=atomic) 08 Mar 2017 05:54PM UTC 0
91.61
Travis Job 2167.2
Source Files on build 2167
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #2167
  • be41bd1c on github
  • Prev Build on constructor-errors (#2166)
  • Next Build on constructor-errors (#2188)
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