github.com/unionj-cloud/go-doudou@v1.3.8-0.20221011095552-0088008e5b31/framework/http/defaulthttpsrv_test.go (about)

     1  package ddhttp
     2  
     3  import (
     4  	"github.com/unionj-cloud/go-doudou/framework/http/model"
     5  	"testing"
     6  )
     7  
     8  func TestDefaultHttpSrv_printRoutes(t *testing.T) {
     9  	srv := NewDefaultHttpSrv()
    10  	srv.gddRoutes = append(srv.gddRoutes, []model.Route{
    11  		{
    12  			Name:    "GetStatsvizWs",
    13  			Method:  "GET",
    14  			Pattern: gddPathPrefix + "statsviz/ws",
    15  		},
    16  		{
    17  			Name:    "GetStatsviz",
    18  			Method:  "GET",
    19  			Pattern: gddPathPrefix + "statsviz/",
    20  		},
    21  	}...)
    22  	srv.printRoutes()
    23  }