ginkgohandler

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsContainer added in v0.13.5

func IsContainer(id *ast.Ident) bool

Types

type Handler

type Handler interface {
	GetFocusContainerName(*ast.CallExpr) (bool, *ast.Ident)
	IsFocusSpec(ident ast.Expr) bool
}

Handler provide different handling, depend on the way ginkgo was imported, whether in imported with "." name, custom name or without any name.

func GetGinkgoHandler

func GetGinkgoHandler(file *ast.File) Handler

GetGinkgoHandler returns a ginkgor handler according to the way ginkgo was imported in the specific file

Jump to

Keyboard shortcuts

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