Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
322 B · 19 lines
Go
1234567891011121314151617181920package ct
import ( "os" "testing"
"github.com/stretchr/testify/require" "stream.place/streamplace/pkg/config")
func CLI(t *testing.T, cli *config.CLI) *config.CLI { dir, err := os.MkdirTemp("", "aq-testing-*") require.NoError(t, err) t.Cleanup(func() { os.RemoveAll(dir) }) cli.DataDir = dir return cli}