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

Function unmarshalAndMarshalServerRole

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

Source from the content-addressed store, hash-verified

110}
111
112func unmarshalAndMarshalServerRole(str string) string {
113 var role ServerRole
114 yaml.Unmarshal([]byte(str), &role)
115 ret, _ := yaml.Marshal(role)
116
117 return strings.TrimSpace(string(ret))
118}
119
120func unmarshalAndMarshalAccountAddress(str string) string {
121 var addr AccountAddress

Callers 1

Calls 2

UnmarshalMethod · 0.80
MarshalMethod · 0.80

Tested by

no test coverage detected