airshipctl/cmd/root_test.go
Ian Howell e4b45002c9 Enable the linter, and fix uncovered linting issues
This uses the current master commit of golangci-lint. We will want to
update to use a tagged version as soon as the golangci-lint team pushes
a new tag
2019-05-30 10:02:54 -05:00

25 lines
422 B
Go

package cmd_test
import (
"testing"
"github.com/ian-howell/airshipctl/cmd"
"github.com/ian-howell/airshipctl/test"
)
func TestRoot(t *testing.T) {
cmdTests := []*test.CmdTest{
{
Name: "default",
CmdLine: "",
},
}
rootCmd, _, err := cmd.NewRootCmd(nil)
if err != nil {
t.Fatalf("Could not create root command: %s", err.Error())
}
for _, tt := range cmdTests {
test.RunTest(t, tt, rootCmd)
}
}