summaryrefslogtreecommitdiff
path: root/cmd/ponzu/new_test.go
diff options
context:
space:
mode:
authorMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-20 13:17:48 +0200
committerMartin Treusch von Buttlar <martin.tvb@vitraum.de>2017-05-20 13:17:48 +0200
commit4c03187fbef64573ded62f40d5d4dace6c48747b (patch)
tree2a4991b142afc022f5cebb1e2e0c19c091943661 /cmd/ponzu/new_test.go
parent6de9e9030108af25bf3c9cace0acc987f39ef2fd (diff)
refactor and add documentation for 'ponzu new'
Diffstat (limited to 'cmd/ponzu/new_test.go')
-rw-r--r--cmd/ponzu/new_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/ponzu/new_test.go b/cmd/ponzu/new_test.go
index cda55a6..76cacb1 100644
--- a/cmd/ponzu/new_test.go
+++ b/cmd/ponzu/new_test.go
@@ -6,7 +6,7 @@ import (
"testing"
)
-func TestNewCheckNmkAbs(t *testing.T) {
+func TestNewName2Path(t *testing.T) {
savedGOPATH := os.Getenv("GOPATH")
defer os.Setenv("GOPATH", savedGOPATH)
pwd, err := os.Getwd()
@@ -55,7 +55,7 @@ func TestNewCheckNmkAbs(t *testing.T) {
if err != nil {
t.Fatalf("could not setup base: %s", err)
}
- got, gotE := checkNmkAbs(test.a)
+ got, gotE := name2path(test.a)
if got != test.wantP {
t.Errorf("got '%s', want: '%s'", got, test.wantP)
}