github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/cmd/svc_test.go (about)

     1  package cmd_test
     2  
     3  import (
     4  	. "github.com/smartystreets/goconvey/convey"
     5  	"github.com/unionj-cloud/go-doudou/cmd"
     6  	"testing"
     7  )
     8  
     9  func Test_svcCmd(t *testing.T) {
    10  	Convey("Should not panic when run svc command", t, func() {
    11  		So(func() {
    12  			ExecuteCommandC(cmd.GetRootCmd(), []string{"svc"}...)
    13  		}, ShouldNotPanic)
    14  	})
    15  }