MCPcopy Create free account
hub / github.com/compozy/agh / mustJSON

Function mustJSON

internal/cli/helpers_test.go:2946–2954  ·  view source on GitHub ↗
(t *testing.T, value any)

Source from the content-addressed store, hash-verified

2944}
2945
2946func mustJSON(t *testing.T, value any) json.RawMessage {
2947 t.Helper()
2948
2949 payload, err := json.Marshal(value)
2950 if err != nil {
2951 t.Fatalf("json.Marshal() error = %v", err)
2952 }
2953 return payload
2954}

Calls

no outgoing calls

Tested by

no test coverage detected