github.com/goplus/igop@v0.17.0/pkg/net/http/httptest/go114_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //+build go1.14,!go1.15
     4  
     5  package httptest
     6  
     7  import (
     8  	q "net/http/httptest"
     9  
    10  	"go/constant"
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.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  			"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]reflect.Type{
    42  			"ResponseRecorder": reflect.TypeOf((*q.ResponseRecorder)(nil)).Elem(),
    43  			"Server":           reflect.TypeOf((*q.Server)(nil)).Elem(),
    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]igop.TypedConst{},
    55  		UntypedConsts: map[string]igop.UntypedConst{
    56  			"DefaultRemoteAddr": {"untyped string", constant.MakeString(string(q.DefaultRemoteAddr))},
    57  		},
    58  	})
    59  }