(t *testing.T)
| 80 | } |
| 81 | |
| 82 | func TestChainedOptions(t *testing.T) { |
| 83 | g := core.New() |
| 84 | g.Provide(di.Deps{di.As(di.Name(di.LocationForPC(ctor, reflect.ValueOf(ctor).Pointer()), "foo"), new(Fooer))}) |
| 85 | |
| 86 | g.Invoke(func(injected struct { |
| 87 | di.In |
| 88 | Stub Fooer `name:"foo"` |
| 89 | }) { |
| 90 | }) |
| 91 | } |