MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / unmarshalAndMarshalYAML

Function unmarshalAndMarshalYAML

crypto/hash/hash_test.go:284–290  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

282}
283
284func unmarshalAndMarshalYAML(str string) string {
285 var hash Hash
286 yaml.Unmarshal([]byte(str), &hash)
287 ret, _ := yaml.Marshal(hash)
288
289 return strings.TrimSpace(string(ret))
290}
291
292func unmarshalAndMarshalJSON(str string) string {
293 var hash Hash

Callers 1

TestHash_MarshalYAMLFunction · 0.85

Calls 2

UnmarshalMethod · 0.80
MarshalMethod · 0.80

Tested by

no test coverage detected