Decorator
|
Decorator |
15 |
.share
|
Decorator.share |
2 |
should declare a shared service
|
- |
|
should declare a shared service with dependencies
|
- |
|
Shared
|
Shared |
1 |
should expose a Shared decorator
|
- |
|
.factory
|
Decorator.factory |
2 |
should declare a factory service
|
- |
|
should declare a factory service with dependencies
|
- |
|
Factory
|
Factory |
1 |
should expose a Factory decorator
|
- |
|
.extend
|
Decorator.extend |
2 |
should extend a service
|
- |
|
should pass extended service as first constructor argument
|
- |
|
Extend
|
Extend |
1 |
should expose a Extend decorator
|
- |
|
.use
|
Decorator.use |
2 |
should inject dependencies
|
- |
|
should use provided arguments
|
- |
|
Use
|
Use |
1 |
should expose a Use decorator
|
- |
|
Inject
|
Inject |
1 |
should expose a Inject decorator
|
- |
|
Combined
|
- |
2 |
Shared + Inject
|
- |
1 |
should declare a shared service with dependencies
|
- |
|
Factory + Inject
|
- |
1 |
should declare a shared service with dependencies
|
- |
|
Jsimple
|
Jsimple |
49 |
constructor
|
Jsimple#constructor |
3 |
should instanciate
|
- |
|
should be empty
|
- |
|
should be frozen
|
- |
|
.define
|
Jsimple#define |
6 |
should return jsimple instance
|
- |
|
should define service
|
- |
|
should store callable
|
- |
|
should store value as callable
|
- |
|
should tag callable
|
- |
|
should not tag same callable twice
|
- |
|
.share
|
Jsimple#share |
6 |
should return jsimple instance
|
- |
|
should wrap callable
|
- |
|
should overwrite existing service
|
- |
|
should refuse to override an already fetched service
|
- |
|
factory
|
- |
2 |
should share service instance
|
- |
|
should receive jsimple instance as an argument
|
- |
|
.factory
|
Jsimple#factory |
6 |
should return jsimple instance
|
- |
|
should wrap callable
|
- |
|
should refuse to override an already fetched service
|
- |
|
should refuse to override an already executed factory
|
- |
|
factory
|
- |
2 |
should not share service instance
|
- |
|
should receive jsimple instance as an argument
|
- |
|
.extend
|
Jsimple#extend |
6 |
should return jsimple instance
|
- |
|
should extend existing service
|
- |
|
should receive base service instance as first argument
|
- |
|
should receive jsimple instance as second argument
|
- |
|
should refuse to extend an already fetched service
|
- |
|
should refuse to extend an already used factory
|
- |
|
.use
|
Jsimple#use |
3 |
should inject jsimple
|
- |
|
should inject given service
|
- |
|
should inject given services
|
- |
|
.protect
|
Jsimple#protect |
1 |
should wrap callable
|
- |
|
.raw
|
Jsimple#raw |
2 |
should return raw callable
|
- |
|
should return raw callable for value
|
- |
|
.tagged
|
Jsimple#tagged |
2 |
should return tagged service names
|
- |
|
should return service names associated with several tags
|
- |
|
.proxify
|
Jsimple#proxify |
14 |
should return a proxified instance
|
- |
|
should be extensible
|
- |
|
should be idempotent
|
- |
|
traps
|
- |
8 |
.get
|
- |
3 |
should not override native methods
|
- |
|
should fetch service
|
- |
|
should execute factory
|
- |
|
.set
|
- |
2 |
should refuse to override native methods
|
- |
|
should define a shared service
|
- |
|
.has
|
- |
2 |
should check if service exists
|
- |
|
should check if factory exists
|
- |
|
.delete
|
- |
1 |
should prevent deletion
|
- |
|
.share
|
Jsimple#share |
1 |
factory
|
- |
1 |
should receive jsimple proxy instance as an argument
|
- |
|
.factory
|
Jsimple#factory |
1 |
factory
|
- |
1 |
should receive jsimple proxy instance as an argument
|
- |
|
cast
|
JsimpleProxified.fromJsimple |
1 |
should keep current state
|
- |
|