expression

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GomegaExpression

type GomegaExpression struct {
	// contains filtered or unexported fields
}

func New

func New(origExpr *ast.CallExpr, pass *analysis.Pass, handler gomegahandler.Handler, timePkg string) (*GomegaExpression, bool)

func (*GomegaExpression) ActualArgTypeIs

func (e *GomegaExpression) ActualArgTypeIs(other actual.ArgType) bool

func (*GomegaExpression) AppendWithArgsToActual

func (e *GomegaExpression) AppendWithArgsToActual()

func (*GomegaExpression) FormatOrig

func (e *GomegaExpression) FormatOrig(frm *formatter.GoFmtFormatter) string

func (*GomegaExpression) GetActualArg

func (e *GomegaExpression) GetActualArg() actual.ArgPayload

func (*GomegaExpression) GetActualArgExpr

func (e *GomegaExpression) GetActualArgExpr() ast.Expr

func (*GomegaExpression) GetActualArgGOType

func (e *GomegaExpression) GetActualArgGOType() gotypes.Type

func (*GomegaExpression) GetActualClone

func (e *GomegaExpression) GetActualClone() *ast.CallExpr

func (*GomegaExpression) GetActualFuncName

func (e *GomegaExpression) GetActualFuncName() string

func (*GomegaExpression) GetAssertFuncName

func (e *GomegaExpression) GetAssertFuncName() string

func (*GomegaExpression) GetAsyncActualArg

func (e *GomegaExpression) GetAsyncActualArg() *actual.AsyncArg

func (*GomegaExpression) GetClone

func (e *GomegaExpression) GetClone() *ast.CallExpr

func (*GomegaExpression) GetMatcher

func (e *GomegaExpression) GetMatcher() *matcher.Matcher

func (*GomegaExpression) GetMatcherInfo

func (e *GomegaExpression) GetMatcherInfo() matcher.Info

func (*GomegaExpression) GetOrigAssertFuncName

func (e *GomegaExpression) GetOrigAssertFuncName() string

func (*GomegaExpression) IsActualTuple added in v0.18.0

func (e *GomegaExpression) IsActualTuple() bool

func (*GomegaExpression) IsAsync

func (e *GomegaExpression) IsAsync() bool

func (*GomegaExpression) IsMissingAssertion

func (e *GomegaExpression) IsMissingAssertion() bool

func (*GomegaExpression) IsNegativeAssertion

func (e *GomegaExpression) IsNegativeAssertion() bool

func (*GomegaExpression) IsUsingGomegaVar added in v0.18.4

func (e *GomegaExpression) IsUsingGomegaVar() bool

func (*GomegaExpression) MatcherTypeIs

func (e *GomegaExpression) MatcherTypeIs(other matcher.Type) bool

func (*GomegaExpression) RemoveMatcherArgs

func (e *GomegaExpression) RemoveMatcherArgs()

func (*GomegaExpression) ReplaceActual

func (e *GomegaExpression) ReplaceActual(newArg ast.Expr)

func (*GomegaExpression) ReplaceActualWithItsFirstArg

func (e *GomegaExpression) ReplaceActualWithItsFirstArg()

func (*GomegaExpression) ReplaceAssertionMethod

func (e *GomegaExpression) ReplaceAssertionMethod(name string)

func (*GomegaExpression) ReplaceMatcherArgs

func (e *GomegaExpression) ReplaceMatcherArgs(newArgs []ast.Expr)

func (*GomegaExpression) ReplaceMatcherFuncName

func (e *GomegaExpression) ReplaceMatcherFuncName(name string)

func (*GomegaExpression) ReverseAssertionFuncLogic

func (e *GomegaExpression) ReverseAssertionFuncLogic()

func (*GomegaExpression) SetLenNumericActual

func (e *GomegaExpression) SetLenNumericActual()

func (*GomegaExpression) SetLenNumericMatcher

func (e *GomegaExpression) SetLenNumericMatcher()

func (*GomegaExpression) SetMatcherBeEmpty

func (e *GomegaExpression) SetMatcherBeEmpty()

func (*GomegaExpression) SetMatcherBeFalse

func (e *GomegaExpression) SetMatcherBeFalse()

func (*GomegaExpression) SetMatcherBeIdenticalTo

func (e *GomegaExpression) SetMatcherBeIdenticalTo(arg ast.Expr)

func (*GomegaExpression) SetMatcherBeNil

func (e *GomegaExpression) SetMatcherBeNil()

func (*GomegaExpression) SetMatcherBeNumerically

func (e *GomegaExpression) SetMatcherBeNumerically(op token.Token, arg ast.Expr)

func (*GomegaExpression) SetMatcherBeTrue

func (e *GomegaExpression) SetMatcherBeTrue()

func (*GomegaExpression) SetMatcherBeZero

func (e *GomegaExpression) SetMatcherBeZero()

func (*GomegaExpression) SetMatcherCap

func (e *GomegaExpression) SetMatcherCap(arg ast.Expr)

func (*GomegaExpression) SetMatcherCapZero

func (e *GomegaExpression) SetMatcherCapZero()

func (*GomegaExpression) SetMatcherEqual

func (e *GomegaExpression) SetMatcherEqual(arg ast.Expr)

func (*GomegaExpression) SetMatcherHaveOccurred

func (e *GomegaExpression) SetMatcherHaveOccurred()

func (*GomegaExpression) SetMatcherHaveValue

func (e *GomegaExpression) SetMatcherHaveValue()

func (*GomegaExpression) SetMatcherLen

func (e *GomegaExpression) SetMatcherLen(arg ast.Expr)

func (*GomegaExpression) SetMatcherSucceed

func (e *GomegaExpression) SetMatcherSucceed()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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