MCPcopy Create free account
hub / github.com/coldbrewcloud/coldbrew-cli / TestConfig_ToJSONWithIndent

Function TestConfig_ToJSONWithIndent

config/persist_test.go:45–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

43}
44
45func TestConfig_ToJSONWithIndent(t *testing.T) {
46 data, err := refConfig.ToJSONWithIndent()
47 assert.Nil(t, err)
48 assert.NotNil(t, data)
49
50 testConfig := &Config{}
51 err = testConfig.FromJSON(data)
52 assert.Nil(t, err)
53 assert.Equal(t, refConfig, testConfig)
54}
55
56func TestConfig_YAMLJSON(t *testing.T) {
57 jsonConfig := &Config{}

Callers

nothing calls this directly

Calls 2

FromJSONMethod · 0.95
ToJSONWithIndentMethod · 0.80

Tested by

no test coverage detected