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

Function TestDefaultConfig

default_config_test.go:9–17  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestDefaultConfig(t *testing.T) {
10 conf := provideDefaultConfig()
11 for _, c := range conf {
12 if c.Validate != nil {
13 err := c.Validate(c.Data)
14 assert.NoError(t, err)
15 }
16 }
17}
18
19func TestDefaultConfig_invalid(t *testing.T) {
20 conf := provideDefaultConfig()

Callers

nothing calls this directly

Calls 1

provideDefaultConfigFunction · 0.85

Tested by

no test coverage detected