2021-05-19 17:16:43 +00:00
|
|
|
package env
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
2022-08-16 18:44:57 +00:00
|
|
|
// NewTestConfig is a helper for setting up a Config object and error checking
|
2021-05-19 17:16:43 +00:00
|
|
|
func NewTestConfig(t *testing.T) *Config {
|
|
|
|
conf, err := NewConfig(os.Stdout, os.Stderr)
|
|
|
|
require.NoError(t, err)
|
|
|
|
|
|
|
|
return conf
|
|
|
|
}
|