Files
jx-callback/tests/default_test.go
邹宗楠 77e99d3bdf 11
2022-03-29 17:31:09 +08:00

27 lines
538 B
Go

package test
import (
"fmt"
"path/filepath"
"runtime"
"testing"
_ "git.rosy.net.cn/jx-callback/routers"
beego "github.com/astaxie/beego/server/web"
//. "github.com/smartystreets/goconvey/convey"
)
func init() {
_, file, _, _ := runtime.Caller(1)
apppath, _ := filepath.Abs(filepath.Dir(filepath.Join(file, ".."+string(filepath.Separator))))
beego.TestBeegoInit(apppath)
}
// TestGet is a sample to run an endpoint test
func TestGet(t *testing.T) {
fmt.Println(7&16 != 0)
fmt.Println(3&16 != 0)
fmt.Println(23&16 != 0)
}