Fix the dependency issue (#231)
This commit is contained in:
24
vendor/github.com/hyperhq/hypercli/pkg/homedir/homedir_test.go
generated
vendored
24
vendor/github.com/hyperhq/hypercli/pkg/homedir/homedir_test.go
generated
vendored
@@ -1,24 +0,0 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
|
||||
func TestGetShortcutString(t *testing.T) {
|
||||
shortcut := GetShortcutString()
|
||||
if shortcut == "" {
|
||||
t.Fatal("returned shortcut string is empty")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user