driftctl/pkg/middlewares/helpers_test.go

15 lines
222 B
Go
Raw Normal View History

2021-11-30 15:23:17 +00:00
package middlewares
import (
"os"
"testing"
"github.com/stretchr/testify/require"
)
func readFile(t *testing.T, name string) string {
content, err := os.ReadFile(name)
require.Nil(t, err)
return string(content)
}