rclone/vendor/github.com/pengsrc/go-shared/utils/home_test.go

16 lines
217 B
Go
Raw Normal View History

2018-06-17 18:59:12 +02:00
package utils
import (
"os/user"
"testing"
"github.com/stretchr/testify/assert"
)
func TestGetHome(t *testing.T) {
usr, err := user.Current()
assert.NoError(t, err)
assert.Equal(t, usr.HomeDir, GetHome())
}