github.com/sl1pm4t/consul@v1.4.5-0.20190325224627-74c31c540f9c/command/version/version_test.go (about) 1 package version 2 3 import ( 4 "strings" 5 "testing" 6 7 "github.com/mitchellh/cli" 8 ) 9 10 func TestVersionCommand_noTabs(t *testing.T) { 11 t.Parallel() 12 if strings.ContainsRune(New(cli.NewMockUi(), "").Help(), '\t') { 13 t.Fatal("help has tabs") 14 } 15 }