MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / directionFileFields

Function directionFileFields

internal/cli/chat_direction_generation_test.go:10–21  ·  view source on GitHub ↗
(t *testing.T, path string)

Source from the content-addressed store, hash-verified

8)
9
10func directionFileFields(t *testing.T, path string) map[string]any {
11 t.Helper()
12 b, err := os.ReadFile(path)
13 if err != nil {
14 t.Fatal(err)
15 }
16 var fields map[string]any
17 if err := json.Unmarshal(b, &fields); err != nil {
18 t.Fatal(err)
19 }
20 return fields
21}
22
23func writeDirectionFileFields(t *testing.T, path string, fields map[string]any) {
24 t.Helper()

Calls 2

HelperMethod · 0.80
FatalMethod · 0.80

Tested by

no test coverage detected