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

ds82 / tiny-di / 18
91%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2015 11:45AM UTC
Jobs 4
Files 13
Run time 5min
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
18

push

travis-ci

ds82
feat(provider): add provider binder/binding

With the provider you can tell tiny to call a function if a module asks
for a dependency:

```js
var tiny = require('tiny-di')();

function myProvider(env, injector) {
  return 'I am a dependency required by ' + env.binding;
}
tiny.provide('something').by(myProvider);
```

```
Foo.$inject = ['something'];
function Foo(something) {
  console.log(something); // => "I am a dependency required by Foo"
}
```

389 of 401 relevant lines covered (97.01%)

14.26 hits per line

Jobs
ID Job ID Ran Files Coverage
1 18.1 03 Jun 2015 11:45AM UTC 0
97.01
Travis Job 18.1
2 18.2 03 Jun 2015 11:45AM UTC 0
97.01
Travis Job 18.2
3 18.3 03 Jun 2015 11:45AM UTC 0
97.01
Travis Job 18.3
4 18.4 03 Jun 2015 11:45AM UTC 0
97.01
Travis Job 18.4
Source Files on build 18
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #18
  • 11409dc8 on github
  • Prev Build on master (#16)
  • Next Build on master (#19)
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