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

Function unmarshalAndMarshalJSON

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

Source from the content-addressed store, hash-verified

290}
291
292func unmarshalAndMarshalJSON(str string) string {
293 var hash Hash
294 json.Unmarshal([]byte(str), &hash)
295 ret, _ := json.Marshal(hash)
296
297 return strings.TrimSpace(string(ret))
298}
299
300func TestHash_MarshalYAML(t *testing.T) {
301 Convey("marshal unmarshal yaml", t, func() {

Callers 1

TestHash_MarshalJSONFunction · 0.85

Calls 2

UnmarshalMethod · 0.80
MarshalMethod · 0.80

Tested by

no test coverage detected