e4b45002c9
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
25 lines
422 B
Go
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)
|
|
}
|
|
}
|