github.com/s-matyukevich/consul@v1.4.5/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  }