custom_matchers

package
v0.0.0-...-5b323e4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnqueueJob

func EnqueueJob(jobName string, count int64) types.GomegaMatcher

EnqueueJob checks if the `jobName` is enqueued `count` time

func MatchJSONSchema

func MatchJSONSchema(fileName string) types.GomegaMatcher

MatchJSONSchema checks if JSON document matches the given JSON Schema.

func RenderTemplate

func RenderTemplate(templateString string) types.GomegaMatcher

Types

type EnqueueJobMatcher

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

func (*EnqueueJobMatcher) FailureMessage

func (matcher *EnqueueJobMatcher) FailureMessage(actual interface{}) string

func (*EnqueueJobMatcher) Match

func (matcher *EnqueueJobMatcher) Match(actual interface{}) (bool, error)

func (*EnqueueJobMatcher) NegatedFailureMessage

func (matcher *EnqueueJobMatcher) NegatedFailureMessage(actual interface{}) string

type LoaderType

type LoaderType int
const (
	StringLoader LoaderType = iota
	ReferenceLoader
)

type RenderTemplateMatcher

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

func (*RenderTemplateMatcher) FailureMessage

func (matcher *RenderTemplateMatcher) FailureMessage(actual interface{}) string

func (*RenderTemplateMatcher) Match

func (matcher *RenderTemplateMatcher) Match(actual interface{}) (bool, error)

func (*RenderTemplateMatcher) NegatedFailureMessage

func (matcher *RenderTemplateMatcher) NegatedFailureMessage(actual interface{}) string

Jump to

Keyboard shortcuts

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