caller

package
v0.142.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestcasePkgDirPath string

Functions

func AsLocation added in v0.94.1

func AsLocation(asBasename bool, file string, line int) string

func GetFrame

func GetFrame() (frame runtime.Frame, ok bool)

func GetLocation

func GetLocation(asBasename bool) string

func IsStdlibFrame added in v0.116.0

func IsStdlibFrame(frame runtime.Frame) bool

func IsTestFileFrame added in v0.116.0

func IsTestFileFrame(frame runtime.Frame) bool

func MatchFunc added in v0.91.0

func MatchFunc(match func(fn Func) bool) bool

func NonTestCaseFrame added in v0.116.0

func NonTestCaseFrame(frame runtime.Frame) bool

func SkipFrame added in v0.120.1

func SkipFrame(n int) func(frame runtime.Frame) bool

func Until added in v0.116.0

func Until(checks ...func(runtime.Frame) bool) (_ok bool)

Types

type Func added in v0.88.0

type Func struct {
	Package  string
	Receiver string
	Funcion  string
}

func FrameToFunc added in v0.120.1

func FrameToFunc(frame runtime.Frame) (Func, bool)

func GetFunc added in v0.88.0

func GetFunc() (Func, bool)

func (Func) String added in v0.120.1

func (fn Func) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL