blob: 0c7df4ea24be8006e6550f239df894e33ba35163 [file] [log] [blame]
package google_cloud_sdk
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestFindGcloud(t *testing.T) {
path, err := FindGcloud()
require.NoError(t, err)
assertFileExists(t, path)
}
func assertFileExists(t *testing.T, path string) {
fileInfo, err := os.Stat(path)
require.NoError(t, err)
assert.False(t, fileInfo.IsDir())
assert.NotZero(t, fileInfo.Size())
}