(t *testing.T, path string)
| 8 | ) |
| 9 | |
| 10 | func 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 | |
| 23 | func writeDirectionFileFields(t *testing.T, path string, fields map[string]any) { |
| 24 | t.Helper() |
no test coverage detected