github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_17_net_http_httptest.go (about)

     1  // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT.
     2  
     3  //go:build go1.17
     4  // +build go1.17
     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  		// function, constant and variable definitions
    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  		// type definitions
    26  		"ResponseRecorder": reflect.ValueOf((*httptest.ResponseRecorder)(nil)),
    27  		"Server":           reflect.ValueOf((*httptest.Server)(nil)),
    28  	}
    29  }