MCPcopy Create free account
hub / github.com/DoNewsCode/core / TestIntegration

Function TestIntegration

otmongo/integration_test.go:11–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

9)
10
11func TestIntegration(t *testing.T) {
12 t.Parallel()
13
14 var called bool
15 c := core.Default()
16 c.Provide(Providers(WithConfigInterceptor(func(name string, clientOptions *options.ClientOptions) {
17 called = true
18 })))
19 c.Invoke(func(maker Maker) {
20 assert.False(t, called)
21 maker.Make("default")
22 assert.True(t, called)
23 })
24}

Callers

nothing calls this directly

Calls 6

DefaultFunction · 0.92
ProvideMethod · 0.80
InvokeMethod · 0.80
ProvidersFunction · 0.70
WithConfigInterceptorFunction · 0.70
MakeMethod · 0.65

Tested by

no test coverage detected