github.com/goplus/gossa@v0.3.25/pkg/net/http/httptest/go117_export.go (about) 1 // export by github.com/goplus/gossa/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package httptest 7 8 import ( 9 q "net/http/httptest" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/gossa" 15 ) 16 17 func init() { 18 gossa.RegisterPackage(&gossa.Package{ 19 Name: "httptest", 20 Path: "net/http/httptest", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "bytes": "bytes", 24 "crypto/tls": "tls", 25 "crypto/x509": "x509", 26 "flag": "flag", 27 "fmt": "fmt", 28 "io": "io", 29 "log": "log", 30 "net": "net", 31 "net/http": "http", 32 "net/http/internal/testcert": "testcert", 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 }