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

Function decodeJSONOutput

internal/cli/tool_test.go:1027–1033  ·  view source on GitHub ↗
(t *testing.T, stdout string, target any)

Source from the content-addressed store, hash-verified

1025}
1026
1027func decodeJSONOutput(t *testing.T, stdout string, target any) {
1028 t.Helper()
1029
1030 if err := json.Unmarshal([]byte(stdout), target); err != nil {
1031 t.Fatalf("json.Unmarshal(%s) error = %v", stdout, err)
1032 }
1033}
1034
1035func assertToolError(
1036 t *testing.T,

Calls

no outgoing calls

Tested by

no test coverage detected