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

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

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

08 Mar 2017 05:51PM UTC coverage: 91.61%. Remained the same
V=1 COVERMODE=atomic

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.

2839 of 3099 relevant lines covered (91.61%)

25.65 hits per line

Source Files on job 2167.2 (V=1 COVERMODE=atomic)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2167
  • Travis Job 2167.2
  • be41bd1c on github
  • Prev Job for V=1 COVERMODE=atomic on constructor-errors (#2166.2)
  • Next Job for V=1 COVERMODE=atomic on constructor-errors (#2188.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc