MCPcopy Create free account
hub / github.com/JordanCoin/codemap / mustJSONInput

Function mustJSONInput

cmd/hooks_more_test.go:118–126  ·  view source on GitHub ↗
(t *testing.T, v any)

Source from the content-addressed store, hash-verified

116}
117
118func mustJSONInput(t *testing.T, v any) string {
119 t.Helper()
120
121 data, err := json.Marshal(v)
122 if err != nil {
123 t.Fatal(err)
124 }
125 return string(data)
126}
127
128func writeProjectConfig(t *testing.T, root string, cfg config.ProjectConfig) {
129 t.Helper()

Calls

no outgoing calls

Tested by

no test coverage detected