github.com/goplus/igop@v0.25.0/pkg/runtime/coverage/go120_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.20 && !go1.21
     4  // +build go1.20,!go1.21
     5  
     6  package coverage
     7  
     8  import (
     9  	q "runtime/coverage"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "coverage",
    19  		Path: "runtime/coverage",
    20  		Deps: map[string]string{
    21  			"crypto/md5":                      "md5",
    22  			"fmt":                             "fmt",
    23  			"internal/coverage":               "coverage",
    24  			"internal/coverage/calloc":        "calloc",
    25  			"internal/coverage/cformat":       "cformat",
    26  			"internal/coverage/cmerge":        "cmerge",
    27  			"internal/coverage/decodecounter": "decodecounter",
    28  			"internal/coverage/decodemeta":    "decodemeta",
    29  			"internal/coverage/encodecounter": "encodecounter",
    30  			"internal/coverage/encodemeta":    "encodemeta",
    31  			"internal/coverage/pods":          "pods",
    32  			"internal/coverage/rtcov":         "rtcov",
    33  			"io":                              "io",
    34  			"os":                              "os",
    35  			"path/filepath":                   "filepath",
    36  			"reflect":                         "reflect",
    37  			"runtime":                         "runtime",
    38  			"strings":                         "strings",
    39  			"sync/atomic":                     "atomic",
    40  			"time":                            "time",
    41  			"unsafe":                          "unsafe",
    42  		},
    43  		Interfaces: map[string]reflect.Type{},
    44  		NamedTypes: map[string]reflect.Type{},
    45  		AliasTypes: map[string]reflect.Type{},
    46  		Vars:       map[string]reflect.Value{},
    47  		Funcs: map[string]reflect.Value{
    48  			"ClearCounters":    reflect.ValueOf(q.ClearCounters),
    49  			"WriteCounters":    reflect.ValueOf(q.WriteCounters),
    50  			"WriteCountersDir": reflect.ValueOf(q.WriteCountersDir),
    51  			"WriteMeta":        reflect.ValueOf(q.WriteMeta),
    52  			"WriteMetaDir":     reflect.ValueOf(q.WriteMetaDir),
    53  		},
    54  		TypedConsts:   map[string]igop.TypedConst{},
    55  		UntypedConsts: map[string]igop.UntypedConst{},
    56  	})
    57  }