1
0
mirror of https://github.com/beego/bee.git synced 2025-06-11 18:40:40 +00:00

upgrade Beego to v2.0.3

This commit is contained in:
Deng Ming
2022-05-23 21:42:04 +08:00
parent 1b4f90114a
commit 7ee363657f
5 changed files with 249 additions and 268 deletions

View File

@ -15,6 +15,7 @@
package swaggergen
import (
_ "github.com/shopspring/decimal"
"go/ast"
"go/build"
"io/ioutil"
@ -23,20 +24,20 @@ import (
"testing"
)
//package model
// package model
//
//import (
//"sync"
// import (
// "sync"
//
//"example.com/pkgnotexist"
//"github.com/shopspring/decimal"
//)
// "example.com/pkgnotexist"
// "github.com/shopspring/decimal"
// )
//
//type Object struct {
// type Object struct {
// Field1 decimal.Decimal
// Field2 pkgnotexist.TestType
// Field3 sync.Map
//}
// }
func TestCheckAndLoadPackageOnGoMod(t *testing.T) {
defer os.Setenv("GO111MODULE", os.Getenv("GO111MODULE"))
os.Setenv("GO111MODULE", "on")
@ -108,20 +109,20 @@ func TestCheckAndLoadPackageOnGoMod(t *testing.T) {
}
}
//package model
// package model
//
//import (
//"sync"
// import (
// "sync"
//
//"example.com/comm"
//"example.com/pkgnotexist"
//)
// "example.com/comm"
// "example.com/pkgnotexist"
// )
//
//type Object struct {
// type Object struct {
// Field1 comm.Common
// Field2 pkgnotexist.TestType
// Field3 sync.Map
//}
// }
func TestCheckAndLoadPackageOnGoPath(t *testing.T) {
var (
testCommPkg = `