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

Function unmarshalAndMarshalAccountAddress

proto/nodeinfo_test.go:120–126  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

118}
119
120func unmarshalAndMarshalAccountAddress(str string) string {
121 var addr AccountAddress
122 yaml.Unmarshal([]byte(str), &addr)
123 ret, _ := yaml.Marshal(addr)
124
125 return strings.TrimSpace(string(ret))
126}
127
128func TestAccountAddress_MarshalYAML(t *testing.T) {
129 Convey("marshal unmarshal yaml", t, func() {

Callers 1

Calls 2

UnmarshalMethod · 0.80
MarshalMethod · 0.80

Tested by

no test coverage detected