| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
package stdlib |
| 7 |
|
| 8 |
import ( |
| 9 |
"go/constant" |
| 10 |
"go/token" |
| 11 |
"net/http/httptest" |
| 12 |
"reflect" |
| 13 |
) |
| 14 |
|
| 15 |
func init() { |
| 16 |
Symbols["net/http/httptest/httptest"] = map[string]reflect.Value{ |
| 17 |
|
| 18 |
"DefaultRemoteAddr": reflect.ValueOf(constant.MakeFromLiteral("\"1.2.3.4\"", token.STRING, 0)), |
| 19 |
"NewRecorder": reflect.ValueOf(httptest.NewRecorder), |
| 20 |
"NewRequest": reflect.ValueOf(httptest.NewRequest), |
| 21 |
"NewServer": reflect.ValueOf(httptest.NewServer), |
| 22 |
"NewTLSServer": reflect.ValueOf(httptest.NewTLSServer), |
| 23 |
"NewUnstartedServer": reflect.ValueOf(httptest.NewUnstartedServer), |
| 24 |
|
| 25 |
|
| 26 |
"ResponseRecorder": reflect.ValueOf((*httptest.ResponseRecorder)(nil)), |
| 27 |
"Server": reflect.ValueOf((*httptest.Server)(nil)), |
| 28 |
} |
| 29 |
} |