1package commands 2 3import ( 4 "testing" 5 6 test "github.com/sensu/sensu-go/cli/commands/testing" 7 "github.com/spf13/cobra" 8 "github.com/stretchr/testify/assert" 9) 10 11func TestAddCommands(t *testing.T) { 12 assert := assert.New(t) 13 cmd := &cobra.Command{} 14 cli := test.SimpleSensuCLI(nil) 15 16 AddCommands(cmd, cli) 17 assert.NotEmpty(cmd.Commands()) 18} 19