consul/command/util_test.go

20 lines
307 B
Go
Raw Normal View History

2013-12-31 13:06:33 -08:00
package command
import (
2016-09-26 10:10:58 -05:00
"strings"
2013-12-31 13:06:33 -08:00
"testing"
2017-03-21 16:36:44 -07:00
"github.com/hashicorp/consul/version"
2016-09-26 10:10:58 -05:00
"github.com/mitchellh/cli"
2013-12-31 13:06:33 -08:00
)
func init() {
2017-03-21 16:36:44 -07:00
version.Version = "0.8.0"
2013-12-31 13:06:33 -08:00
}
2016-09-26 10:10:58 -05:00
func assertNoTabs(t *testing.T, c cli.Command) {
if strings.ContainsRune(c.Help(), '\t') {
t.Errorf("%#v help output contains tabs", c)
}
}