consul/command/util_test.go

15 lines
224 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"
2016-09-26 10:10:58 -05:00
"github.com/mitchellh/cli"
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)
}
}