Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing failing tests - Added a makefile #76

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
test:
go test ./...
build:
go build
4 changes: 2 additions & 2 deletions pkg/prompt/prompt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

Expand Down