Files
logwisp/internal/config/test_helpers_test.go
T

16 lines
238 B
Go

package config
import (
"testing"
"github.com/lixenwraith/logwisp/internal/testutil"
)
func isolateConfig(t *testing.T) {
t.Helper()
testutil.ClearEnvPrefix(t, "LOGWISP_")
dir := t.TempDir()
t.Setenv("HOME", dir)
t.Chdir(dir)
}