diff options
| author | Paul Buetow <paul@buetow.org> | 2025-10-03 23:50:49 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-10-03 23:50:49 +0300 |
| commit | 420b5aebf888c638ac096e1476c06eac979ac257 (patch) | |
| tree | 59434cbc37837399d7b5bc7920ffd7be62f1fc7d /internal/hexaicli/testhelpers_test.go | |
| parent | e36a5446bc62842ae3b3e165f66fecb7285a8c6a (diff) | |
Switch inline prompt markers to >! prefixv0.15.1
Diffstat (limited to 'internal/hexaicli/testhelpers_test.go')
| -rw-r--r-- | internal/hexaicli/testhelpers_test.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/internal/hexaicli/testhelpers_test.go b/internal/hexaicli/testhelpers_test.go index 93f1e3d..4cc04f7 100644 --- a/internal/hexaicli/testhelpers_test.go +++ b/internal/hexaicli/testhelpers_test.go @@ -79,4 +79,14 @@ func writeTOML(t *testing.T, path string, m map[string]string) { } } +func writeConfigString(t *testing.T, path string, contents string) { + t.Helper() + if err := os.MkdirAll(filepath.Dir(path), 0o755); err != nil { + t.Fatalf("mkdir: %v", err) + } + if err := os.WriteFile(path, []byte(contents), 0o644); err != nil { + t.Fatalf("write: %v", err) + } +} + func testingTempDir(t *testing.T) string { t.Helper(); return t.TempDir() } |
