driftctl/pkg/middlewares/helpers_test.go

15 lines
222 B
Go

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)
}