github.com/goplus/gossa@v0.3.25/pkg/testing/fstest/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package fstest
     7  
     8  import (
     9  	q "testing/fstest"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "fstest",
    19  		Path: "testing/fstest",
    20  		Deps: map[string]string{
    21  			"errors":         "errors",
    22  			"fmt":            "fmt",
    23  			"io":             "io",
    24  			"io/fs":          "fs",
    25  			"path":           "path",
    26  			"reflect":        "reflect",
    27  			"sort":           "sort",
    28  			"strings":        "strings",
    29  			"testing/iotest": "iotest",
    30  			"time":           "time",
    31  		},
    32  		Interfaces: map[string]reflect.Type{},
    33  		NamedTypes: map[string]gossa.NamedType{
    34  			"MapFS":   {reflect.TypeOf((*q.MapFS)(nil)).Elem(), "Glob,Open,ReadDir,ReadFile,Stat,Sub", ""},
    35  			"MapFile": {reflect.TypeOf((*q.MapFile)(nil)).Elem(), "", ""},
    36  		},
    37  		AliasTypes: map[string]reflect.Type{},
    38  		Vars:       map[string]reflect.Value{},
    39  		Funcs: map[string]reflect.Value{
    40  			"TestFS": reflect.ValueOf(q.TestFS),
    41  		},
    42  		TypedConsts:   map[string]gossa.TypedConst{},
    43  		UntypedConsts: map[string]gossa.UntypedConst{},
    44  	})
    45  }