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