ginkgohandler

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsContainer

func IsContainer(name string) bool

func IsWrapContainer

func IsWrapContainer(name string) bool

Types

type Handler

type Handler interface {
	GetFocusContainerName(*ast.CallExpr) (bool, *ast.Ident)
	IsWrapContainer(*ast.CallExpr) bool
	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