MCPcopy Create free account
hub / github.com/coder/slog / marshalJSON

Function marshalJSON

map_test.go:254–258  ·  view source on GitHub ↗
(t *testing.T, m slog.Map)

Source from the content-addressed store, hash-verified

252}
253
254func marshalJSON(t *testing.T, m slog.Map) string {
255 actb, err := json.Marshal(m)
256 assert.Success(t, "marshal map to JSON", err)
257 return indentJSON(t, string(actb))
258}
259
260type complexJSON complex128
261

Callers 1

TestMapFunction · 0.85

Calls 2

SuccessFunction · 0.92
indentJSONFunction · 0.85

Tested by

no test coverage detected