github.com/goplus/gossa@v0.3.25/pkg/net/http/httptest/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     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  			"log":                                   "log",
    29  			"net":                                   "net",
    30  			"net/http":                              "http",
    31  			"net/http/internal":                     "internal",
    32  			"net/textproto":                         "textproto",
    33  			"os":                                    "os",
    34  			"strconv":                               "strconv",
    35  			"strings":                               "strings",
    36  			"sync":                                  "sync",
    37  			"time":                                  "time",
    38  			"vendor/golang.org/x/net/http/httpguts": "httpguts",
    39  		},
    40  		Interfaces: map[string]reflect.Type{},
    41  		NamedTypes: map[string]gossa.NamedType{
    42  			"ResponseRecorder": {reflect.TypeOf((*q.ResponseRecorder)(nil)).Elem(), "", "Flush,Header,Result,Write,WriteHeader,WriteString,writeHeader"},
    43  			"Server":           {reflect.TypeOf((*q.Server)(nil)).Elem(), "", "Certificate,Client,Close,CloseClientConnections,Start,StartTLS,closeConn,closeConnChan,forgetConn,goServe,logCloseHangDebugInfo,wrap"},
    44  		},
    45  		AliasTypes: map[string]reflect.Type{},
    46  		Vars:       map[string]reflect.Value{},
    47  		Funcs: map[string]reflect.Value{
    48  			"NewRecorder":        reflect.ValueOf(q.NewRecorder),
    49  			"NewRequest":         reflect.ValueOf(q.NewRequest),
    50  			"NewServer":          reflect.ValueOf(q.NewServer),
    51  			"NewTLSServer":       reflect.ValueOf(q.NewTLSServer),
    52  			"NewUnstartedServer": reflect.ValueOf(q.NewUnstartedServer),
    53  		},
    54  		TypedConsts: map[string]gossa.TypedConst{},
    55  		UntypedConsts: map[string]gossa.UntypedConst{
    56  			"DefaultRemoteAddr": {"untyped string", constant.MakeString(string(q.DefaultRemoteAddr))},
    57  		},
    58  	})
    59  }