caller

package
v0.151.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 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

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

func IsStdlibFrame(frame runtime.Frame) bool

func IsTestFileFrame

func IsTestFileFrame(frame runtime.Frame) bool

func MatchFunc

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

func NonTestCaseFrame

func NonTestCaseFrame(frame runtime.Frame) bool

func SkipFrame

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

func Until

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

Types

type Func

type Func struct {
	Package  string
	Receiver string
	Funcion  string
}

func FrameToFunc

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

func GetFunc

func GetFunc() (Func, bool)

func (Func) String

func (fn Func) String() string

Jump to

Keyboard shortcuts

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