@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
2
internal/goose/testdata/Cleanup/foo/goose.go
vendored
2
internal/goose/testdata/Cleanup/foo/goose.go
vendored
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectBar() (*Bar, func()) {
|
||||
panic(goose.Use(provideFoo, provideBar))
|
||||
panic(goose.Build(provideFoo, provideBar))
|
||||
}
|
||||
|
||||
@@ -35,5 +35,5 @@ func provideMessage() string {
|
||||
}
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(provideMessage))
|
||||
panic(goose.Build(provideMessage))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(myFakeSet))
|
||||
panic(goose.Build(myFakeSet))
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(bar.Value))
|
||||
panic(goose.Build(bar.Value))
|
||||
}
|
||||
|
||||
@@ -24,5 +24,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedFile() *os.File {
|
||||
panic(goose.Use(bar.Value))
|
||||
panic(goose.Build(bar.Value))
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooer() foo.Fooer {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar(foo Foo) FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectBar(foo Foo) Bar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooer() Fooer {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
panic(goose.Use(
|
||||
panic(goose.Build(
|
||||
provideBar,
|
||||
provideFooBar,
|
||||
goose.Bind(Fooer(nil), (*Bar)(nil))))
|
||||
|
||||
@@ -23,5 +23,5 @@ import (
|
||||
)
|
||||
|
||||
func inject(context stdcontext.Context, err struct{}) (context, error) {
|
||||
panic(goose.Use(provide))
|
||||
panic(goose.Build(provide))
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ func Provide(context2 stdcontext.Context) (context, error) {
|
||||
}
|
||||
|
||||
func inject(context stdcontext.Context, err struct{}) (context, error) {
|
||||
panic(goose.Use(Provide))
|
||||
panic(goose.Build(Provide))
|
||||
}
|
||||
|
||||
func (context) Provide() {
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(provideMessage))
|
||||
panic(goose.Build(provideMessage))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(goose.Value("Hello, World!")))
|
||||
panic(goose.Build(goose.Value("Hello, World!")))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooer() Fooer {
|
||||
panic(goose.Use(provideBar))
|
||||
panic(goose.Build(provideBar))
|
||||
}
|
||||
|
||||
@@ -26,5 +26,5 @@ import (
|
||||
// parameter names on the inject stub.
|
||||
|
||||
func inject(stdcontext.Context, struct{}) (context, error) {
|
||||
panic(goose.Use(provide))
|
||||
panic(goose.Build(provide))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectBaz() (Baz, func(), error) {
|
||||
panic(goose.Use(provideFoo, provideBar, provideBaz))
|
||||
panic(goose.Build(provideFoo, provideBar, provideBaz))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFoo() (Foo, error) {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
2
internal/goose/testdata/Struct/foo/goose.go
vendored
2
internal/goose/testdata/Struct/foo/goose.go
vendored
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() *FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -22,5 +22,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(bar.Value))
|
||||
panic(goose.Build(bar.Value))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectFooBar() FooBar {
|
||||
panic(goose.Use(Set))
|
||||
panic(goose.Build(Set))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() Foo {
|
||||
panic(goose.Use(goose.Value(Foo("Hello, World!"))))
|
||||
panic(goose.Build(goose.Value(Foo("Hello, World!"))))
|
||||
}
|
||||
|
||||
@@ -21,5 +21,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(goose.Value(msg)))
|
||||
panic(goose.Build(goose.Value(msg)))
|
||||
}
|
||||
|
||||
2
internal/goose/testdata/Vendor/foo/goose.go
vendored
2
internal/goose/testdata/Vendor/foo/goose.go
vendored
@@ -22,5 +22,5 @@ import (
|
||||
)
|
||||
|
||||
func injectedMessage() string {
|
||||
panic(goose.Use(bar.ProvideMessage))
|
||||
panic(goose.Build(bar.ProvideMessage))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user