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

Function TestHash_MarshalJSON

crypto/hash/hash_test.go:307–312  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

305}
306
307func TestHash_MarshalJSON(t *testing.T) {
308 Convey("marshal unmarshal yaml", t, func() {
309 So(unmarshalAndMarshalJSON(`"029e54e333da9ff38acb0f1afd8b425d57ba301539bc7b26a94f1ab663605efb"`), ShouldEqual, `"029e54e333da9ff38acb0f1afd8b425d57ba301539bc7b26a94f1ab663605efb"`)
310 So(unmarshalAndMarshalJSON(`"02c76216704d797c64c58bc11519fb68582e8e63de7e5b3b2dbbbe8733efe5fd"`), ShouldEqual, `"02c76216704d797c64c58bc11519fb68582e8e63de7e5b3b2dbbbe8733efe5fd"`)
311 })
312}

Callers

nothing calls this directly

Calls 1

unmarshalAndMarshalJSONFunction · 0.85

Tested by

no test coverage detected