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

Function Test_integration

config/integration_test.go:28–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

26}
27
28func Test_integration(t *testing.T) {
29 defer func() {
30 if r := recover(); r != nil {
31 return
32 }
33 t.Errorf("test should panic. the config is not valid.")
34 }()
35 c := core.Default()
36 c.Provide(di.Deps{
37 provideConfig,
38 })
39 c.AddModuleFunc(config.New)
40}

Callers

nothing calls this directly

Calls 3

DefaultFunction · 0.92
ProvideMethod · 0.80
AddModuleFuncMethod · 0.80

Tested by

no test coverage detected