open-vault/command/base_test.go
2017-10-24 09:26:44 -04:00

15 lines
226 B
Go

package command
import (
"strings"
"testing"
"github.com/mitchellh/cli"
)
func assertNoTabs(tb testing.TB, c cli.Command) {
if strings.ContainsRune(c.Help(), '\t') {
tb.Errorf("%#v help output contains tabs", c)
}
}