(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestName(t *testing.T) { |
| 41 | g := core.New() |
| 42 | g.Provide(di.Deps{di.Name(ctor, "foo")}) |
| 43 | g.Invoke(func(injected struct { |
| 44 | dig.In |
| 45 | Stub Stub `name:"foo"` |
| 46 | }) { |
| 47 | }) |
| 48 | } |
| 49 | |
| 50 | func TestAs(t *testing.T) { |
| 51 | g := core.New() |