github.com/goplus/gossa@v0.3.25/pkg/net/http/httptest/go115_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //+build go1.15,!go1.16 4 5 package httptest 6 7 import ( 8 q "net/http/httptest" 9 10 "go/constant" 11 "reflect" 12 13 "github.com/goplus/gossa" 14 ) 15 16 func init() { 17 gossa.RegisterPackage(&gossa.Package{ 18 Name: "httptest", 19 Path: "net/http/httptest", 20 Deps: map[string]string{ 21 "bufio": "bufio", 22 "bytes": "bytes", 23 "crypto/tls": "tls", 24 "crypto/x509": "x509", 25 "flag": "flag", 26 "fmt": "fmt", 27 "io": "io", 28 "io/ioutil": "ioutil", 29 "log": "log", 30 "net": "net", 31 "net/http": "http", 32 "net/http/internal": "internal", 33 "net/textproto": "textproto", 34 "os": "os", 35 "strconv": "strconv", 36 "strings": "strings", 37 "sync": "sync", 38 "time": "time", 39 "vendor/golang.org/x/net/http/httpguts": "httpguts", 40 }, 41 Interfaces: map[string]reflect.Type{}, 42 NamedTypes: map[string]gossa.NamedType{ 43 "ResponseRecorder": {reflect.TypeOf((*q.ResponseRecorder)(nil)).Elem(), "", "Flush,Header,Result,Write,WriteHeader,WriteString,writeHeader"}, 44 "Server": {reflect.TypeOf((*q.Server)(nil)).Elem(), "", "Certificate,Client,Close,CloseClientConnections,Start,StartTLS,closeConn,closeConnChan,forgetConn,goServe,logCloseHangDebugInfo,wrap"}, 45 }, 46 AliasTypes: map[string]reflect.Type{}, 47 Vars: map[string]reflect.Value{}, 48 Funcs: map[string]reflect.Value{ 49 "NewRecorder": reflect.ValueOf(q.NewRecorder), 50 "NewRequest": reflect.ValueOf(q.NewRequest), 51 "NewServer": reflect.ValueOf(q.NewServer), 52 "NewTLSServer": reflect.ValueOf(q.NewTLSServer), 53 "NewUnstartedServer": reflect.ValueOf(q.NewUnstartedServer), 54 }, 55 TypedConsts: map[string]gossa.TypedConst{}, 56 UntypedConsts: map[string]gossa.UntypedConst{ 57 "DefaultRemoteAddr": {"untyped string", constant.MakeString(string(q.DefaultRemoteAddr))}, 58 }, 59 }) 60 }