MCPcopy Index your code
hub / github.com/coldbrewcloud/coldbrew-cli / testClone

Function testClone

config/load_test.go:186–196  ·  view source on GitHub ↗
(src *Config)

Source from the content-addressed store, hash-verified

184}
185
186func testClone(src *Config) *Config {
187 yaml, err := src.ToYAML()
188 if err != nil {
189 panic(err)
190 }
191 dest := &Config{}
192 if err := dest.FromYAML(yaml); err != nil {
193 panic(err)
194 }
195 return dest
196}

Callers 1

TestConfig_DefaultsFunction · 0.85

Calls 2

FromYAMLMethod · 0.95
ToYAMLMethod · 0.80

Tested by

no test coverage detected