Documentation ¶
Index ¶
- type GomegaExpression
- func (e *GomegaExpression) ActualArgTypeIs(other actual.ArgType) bool
- func (e *GomegaExpression) AppendWithArgsToActual()
- func (e *GomegaExpression) FormatOrig(frm *formatter.GoFmtFormatter) string
- func (e *GomegaExpression) GetActualArg() actual.ArgPayload
- func (e *GomegaExpression) GetActualArgExpr() ast.Expr
- func (e *GomegaExpression) GetActualArgGOType() gotypes.Type
- func (e *GomegaExpression) GetActualClone() *ast.CallExpr
- func (e *GomegaExpression) GetActualFuncName() string
- func (e *GomegaExpression) GetAssertFuncName() string
- func (e *GomegaExpression) GetAsyncActualArg() *actual.AsyncArg
- func (e *GomegaExpression) GetClone() *ast.CallExpr
- func (e *GomegaExpression) GetMatcher() *matcher.Matcher
- func (e *GomegaExpression) GetMatcherInfo() matcher.Info
- func (e *GomegaExpression) GetOrigAssertFuncName() string
- func (e *GomegaExpression) IsActualTuple() bool
- func (e *GomegaExpression) IsAsync() bool
- func (e *GomegaExpression) IsMissingAssertion() bool
- func (e *GomegaExpression) IsNegativeAssertion() bool
- func (e *GomegaExpression) IsUsingGomegaVar() bool
- func (e *GomegaExpression) MatcherTypeIs(other matcher.Type) bool
- func (e *GomegaExpression) RemoveMatcherArgs()
- func (e *GomegaExpression) ReplaceActual(newArg ast.Expr)
- func (e *GomegaExpression) ReplaceActualWithItsFirstArg()
- func (e *GomegaExpression) ReplaceAssertionMethod(name string)
- func (e *GomegaExpression) ReplaceMatcherArgs(newArgs []ast.Expr)
- func (e *GomegaExpression) ReplaceMatcherFuncName(name string)
- func (e *GomegaExpression) ReverseAssertionFuncLogic()
- func (e *GomegaExpression) SetLenNumericActual()
- func (e *GomegaExpression) SetLenNumericMatcher()
- func (e *GomegaExpression) SetMatcherBeEmpty()
- func (e *GomegaExpression) SetMatcherBeFalse()
- func (e *GomegaExpression) SetMatcherBeIdenticalTo(arg ast.Expr)
- func (e *GomegaExpression) SetMatcherBeNil()
- func (e *GomegaExpression) SetMatcherBeNumerically(op token.Token, arg ast.Expr)
- func (e *GomegaExpression) SetMatcherBeTrue()
- func (e *GomegaExpression) SetMatcherBeZero()
- func (e *GomegaExpression) SetMatcherCap(arg ast.Expr)
- func (e *GomegaExpression) SetMatcherCapZero()
- func (e *GomegaExpression) SetMatcherEqual(arg ast.Expr)
- func (e *GomegaExpression) SetMatcherHaveOccurred()
- func (e *GomegaExpression) SetMatcherHaveValue()
- func (e *GomegaExpression) SetMatcherLen(arg ast.Expr)
- func (e *GomegaExpression) SetMatcherSucceed()
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()
Click to show internal directories.
Click to hide internal directories.