MCPcopy Create free account
hub / github.com/conforma/cli / writeInput

Function writeInput

internal/evaluator/evaluator_comparison_test.go:79–86  ·  view source on GitHub ↗
(t *testing.T, data map[string]any)

Source from the content-addressed store, hash-verified

77}
78
79func writeInput(t *testing.T, data map[string]any) string {
80 t.Helper()
81 inputBytes, err := json.Marshal(data)
82 require.NoError(t, err)
83 inputPath := filepath.Join(t.TempDir(), "input.json")
84 require.NoError(t, os.WriteFile(inputPath, inputBytes, 0o600))
85 return inputPath
86}
87
88type outcomeSummary struct {
89 failureCodes []string

Calls 1

HelperMethod · 0.80

Tested by

no test coverage detected