mirror of
https://github.com/rclone/rclone.git
synced 2025-03-10 20:45:14 +08:00
16 lines
217 B
Go
16 lines
217 B
Go
![]() |
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())
|
||
|
}
|