MCPcopy Index your code
hub / github.com/dnote/dnote / ToJSON

Method ToJSON

pkg/server/testutils/main.go:301–308  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

299}
300
301func (p PayloadWrapper) ToJSON(t *testing.T) string {
302 b, err := json.Marshal(p.Data)
303 if err != nil {
304 t.Fatal(err)
305 }
306
307 return string(b)
308}
309
310// TrueVal is a true value
311var TrueVal = true

Callers 2

TestUpdateNoteFunction · 0.80
TestUpdateBookFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestUpdateNoteFunction · 0.64
TestUpdateBookFunction · 0.64