Skip to content

Commit

Permalink
chore: more tests
Browse files Browse the repository at this point in the history
Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
  • Loading branch information
giautm committed Apr 22, 2023
1 parent a5727b7 commit 8067829
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/wire/testdata/Subtract/foo/wire.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,10 @@ func injectFooBarService(name BarName, opts *FooOptions, bar *FakeBarService) *F
wire.Bind(new(BarService), new(*FakeBarService)),
))
}

func injectNone(name BarName, foo Foo, bar *FakeBarService) *FooBar {
panic(wire.Build(
wire.Subtract(SuperSet, new(Foo), new(BarService)),
wire.Bind(new(BarService), new(*FakeBarService)),
))
}
8 changes: 8 additions & 0 deletions internal/wire/testdata/Subtract/want/wire_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8067829

Please sign in to comment.