github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_net_http_httptest.go (about) 1 // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT. 2 3 // +build go1.16,!go1.17 4 5 package stdlib 6 7 import ( 8 "go/constant" 9 "go/token" 10 "net/http/httptest" 11 "reflect" 12 ) 13 14 func init() { 15 Symbols["net/http/httptest/httptest"] = map[string]reflect.Value{ 16 // function, constant and variable definitions 17 "DefaultRemoteAddr": reflect.ValueOf(constant.MakeFromLiteral("\"1.2.3.4\"", token.STRING, 0)), 18 "NewRecorder": reflect.ValueOf(httptest.NewRecorder), 19 "NewRequest": reflect.ValueOf(httptest.NewRequest), 20 "NewServer": reflect.ValueOf(httptest.NewServer), 21 "NewTLSServer": reflect.ValueOf(httptest.NewTLSServer), 22 "NewUnstartedServer": reflect.ValueOf(httptest.NewUnstartedServer), 23 24 // type definitions 25 "ResponseRecorder": reflect.ValueOf((*httptest.ResponseRecorder)(nil)), 26 "Server": reflect.ValueOf((*httptest.Server)(nil)), 27 } 28 }