github.com/goplus/igop@v0.25.0/pkg/testing/iotest/go119_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.19 && !go1.20
     4  // +build go1.19,!go1.20
     5  
     6  package iotest
     7  
     8  import (
     9  	q "testing/iotest"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "iotest",
    19  		Path: "testing/iotest",
    20  		Deps: map[string]string{
    21  			"bytes":  "bytes",
    22  			"errors": "errors",
    23  			"fmt":    "fmt",
    24  			"io":     "io",
    25  			"log":    "log",
    26  		},
    27  		Interfaces: map[string]reflect.Type{},
    28  		NamedTypes: map[string]reflect.Type{},
    29  		AliasTypes: map[string]reflect.Type{},
    30  		Vars: map[string]reflect.Value{
    31  			"ErrTimeout": reflect.ValueOf(&q.ErrTimeout),
    32  		},
    33  		Funcs: map[string]reflect.Value{
    34  			"DataErrReader":  reflect.ValueOf(q.DataErrReader),
    35  			"ErrReader":      reflect.ValueOf(q.ErrReader),
    36  			"HalfReader":     reflect.ValueOf(q.HalfReader),
    37  			"NewReadLogger":  reflect.ValueOf(q.NewReadLogger),
    38  			"NewWriteLogger": reflect.ValueOf(q.NewWriteLogger),
    39  			"OneByteReader":  reflect.ValueOf(q.OneByteReader),
    40  			"TestReader":     reflect.ValueOf(q.TestReader),
    41  			"TimeoutReader":  reflect.ValueOf(q.TimeoutReader),
    42  			"TruncateWriter": reflect.ValueOf(q.TruncateWriter),
    43  		},
    44  		TypedConsts:   map[string]igop.TypedConst{},
    45  		UntypedConsts: map[string]igop.UntypedConst{},
    46  	})
    47  }