mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
f9ae2d4fd4
Signed-off-by: Ahmet Alp Balkan <ahmetb@microsoft.com>
17 lines
255 B
Go
17 lines
255 B
Go
package homedir
|
|
|
|
import (
|
|
"path/filepath"
|
|
"testing"
|
|
)
|
|
|
|
func TestGet(t *testing.T) {
|
|
home := Get()
|
|
if home == "" {
|
|
t.Fatal("returned home directory is empty")
|
|
}
|
|
|
|
if !filepath.IsAbs(home) {
|
|
t.Fatalf("returned path is not absolute: %s", home)
|
|
}
|
|
}
|