MCPcopy Index your code
hub / github.com/DoNewsCode/core / TestName

Function TestName

di/optional_provider_test.go:40–48  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

38}
39
40func 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
50func TestAs(t *testing.T) {
51 g := core.New()

Callers

nothing calls this directly

Calls 4

NewFunction · 0.92
NameFunction · 0.92
ProvideMethod · 0.80
InvokeMethod · 0.80

Tested by

no test coverage detected