diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d3f2ee1 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +test: + go test ./... +build: + go build \ No newline at end of file diff --git a/pkg/prompt/prompt_test.go b/pkg/prompt/prompt_test.go index 3e3b93c..28deb18 100644 --- a/pkg/prompt/prompt_test.go +++ b/pkg/prompt/prompt_test.go @@ -49,7 +49,7 @@ func TestNewBooleanPromptFunc(t *testing.T) { expectedPromptMsg := "Please choose a value for \"fieldName\"" if msg != expectedPromptMsg { - t.Errorf("boolPrompt(%q).PromptMessage(%q) expected %q got %q", defval, name, expectedPromptMsg, msg) + t.Errorf("boolPrompt((%v).PromptMessage(%q) expected %q got %q", defval, name, expectedPromptMsg, msg) } choiceCases := []struct { @@ -73,7 +73,7 @@ func TestNewBooleanPromptFunc(t *testing.T) { for _, c := range choiceCases { val, err := boolPrompt.EvaluateChoice(c.choice) if err != nil { - t.Errorf("boolPrompt(%q).EvaluateChoice(%q) got error %q", defval, c.choice, err) + t.Errorf("boolPrompt(%v).EvaluateChoice(%q) got error %q", defval, c.choice, err) continue }