light-core/test/start_test.go

18 lines
300 B
Go
Raw Normal View History

2024-12-17 22:28:48 +08:00
package test
import (
2024-12-17 22:47:16 +08:00
"code.zhecent.com/gopkg/light-core/lightCore"
"github.com/gin-gonic/gin"
2024-12-17 22:28:48 +08:00
"testing"
)
func TestStart(t *testing.T) {
2024-12-17 22:47:16 +08:00
lightCore.StartEngine("debug").
//LoadHtml("view/*").
Mounts([]*lightCore.Routers{}).
SetNoRoute(func(context *gin.Context) {
}).
Launch(8888)
2024-12-17 22:28:48 +08:00
}