github.com/youminxue/odin@v0.0.0-20230216022911-c2c8b05d3a41/cmd/svc_test.go (about)

     1  package cmd_test
     2  
     3  import (
     4  	. "github.com/smartystreets/goconvey/convey"
     5  	"github.com/youminxue/odin/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  }