Source file src/runtime/importx_test.go

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // See import_test.go. This is the half that lives in the runtime package.
     6  
     7  // TODO: Generate this
     8  
     9  package runtime
    10  
    11  type TestingT interface {
    12  	Cleanup(func())
    13  	Error(args ...any)
    14  	Errorf(format string, args ...any)
    15  	Fail()
    16  	FailNow()
    17  	Failed() bool
    18  	Fatal(args ...any)
    19  	Fatalf(format string, args ...any)
    20  	Helper()
    21  	Log(args ...any)
    22  	Logf(format string, args ...any)
    23  	Name() string
    24  	Setenv(key, value string)
    25  	Skip(args ...any)
    26  	SkipNow()
    27  	Skipf(format string, args ...any)
    28  	Skipped() bool
    29  	TempDir() string
    30  }
    31  
    32  var FmtSprintf func(format string, a ...any) string
    33  var TestenvOptimizationOff func() bool
    34  

View as plain text