blob: bd06a0e2c6b3f0923fb120c92f2dbbe27d2b31d2 [file] [log] [blame]
package rules_go
import (
"os"
"testing"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
func TestFindGo(t *testing.T) {
path, err := FindGo()
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())
}