open-consul/command/util_test.go

20 lines
307 B
Go
Raw Normal View History

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