Skip to content
This repository was archived by the owner on Aug 25, 2025. It is now read-only.

Commit 8067829

Browse files
committed
chore: more tests
Signed-off-by: Giau. Tran Minh <[email protected]>
1 parent a5727b7 commit 8067829

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

internal/wire/testdata/Subtract/foo/wire.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,10 @@ func injectFooBarService(name BarName, opts *FooOptions, bar *FakeBarService) *F
4040
wire.Bind(new(BarService), new(*FakeBarService)),
4141
))
4242
}
43+
44+
func injectNone(name BarName, foo Foo, bar *FakeBarService) *FooBar {
45+
panic(wire.Build(
46+
wire.Subtract(SuperSet, new(Foo), new(BarService)),
47+
wire.Bind(new(BarService), new(*FakeBarService)),
48+
))
49+
}

internal/wire/testdata/Subtract/want/wire_gen.go

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)