aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils/customflags_test.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@ziggo.nl>2015-04-09 16:26:26 +0800
committerBas van Kervel <basvankervel@ziggo.nl>2015-04-09 16:26:26 +0800
commit6da5b2fc5fc0fe703158411afcd4f05add0336f2 (patch)
tree72d3a8418707389f31f9c4491a9bfeb0334bd771 /cmd/utils/customflags_test.go
parent5304f43067c24e24eb8b8550c0db67fdbcc94718 (diff)
downloaddexon-6da5b2fc5fc0fe703158411afcd4f05add0336f2.tar.gz
dexon-6da5b2fc5fc0fe703158411afcd4f05add0336f2.tar.zst
dexon-6da5b2fc5fc0fe703158411afcd4f05add0336f2.zip
reformat code with goimports
Diffstat (limited to 'cmd/utils/customflags_test.go')
-rw-r--r--cmd/utils/customflags_test.go34
1 files changed, 17 insertions, 17 deletions
diff --git a/cmd/utils/customflags_test.go b/cmd/utils/customflags_test.go
index 5674b939e..11deb38ef 100644
--- a/cmd/utils/customflags_test.go
+++ b/cmd/utils/customflags_test.go
@@ -1,28 +1,28 @@
package utils
import (
- "testing"
- "os"
- "os/user"
+ "os"
+ "os/user"
+ "testing"
)
func TestPathExpansion(t *testing.T) {
- user, _ := user.Current()
+ user, _ := user.Current()
- tests := map[string]string {
- "/home/someuser/tmp": "/home/someuser/tmp",
- "~/tmp": user.HomeDir + "/tmp",
- "$DDDXXX/a/b": "/tmp/a/b",
- "/a/b/": "/a/b",
- }
+ tests := map[string]string{
+ "/home/someuser/tmp": "/home/someuser/tmp",
+ "~/tmp": user.HomeDir + "/tmp",
+ "$DDDXXX/a/b": "/tmp/a/b",
+ "/a/b/": "/a/b",
+ }
- os.Setenv("DDDXXX", "/tmp")
+ os.Setenv("DDDXXX", "/tmp")
- for test, expected := range tests {
- got := expandPath(test)
- if got != expected {
- t.Errorf("test %s, got %s, expected %s\n", test, got, expected)
- }
- }
+ for test, expected := range tests {
+ got := expandPath(test)
+ if got != expected {
+ t.Errorf("test %s, got %s, expected %s\n", test, got, expected)
+ }
+ }
}