matcher

package
v0.0.0-...-e1628ab Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsFlow

func ContainsFlow(expected []string) types.GomegaMatcher

ContainsFlow succeeds only if actual contains all of expected flow. Actual must be type of map[string][]string or []string.

func ContainsRelativeFlow

func ContainsRelativeFlow(expected map[string][]string) types.GomegaMatcher

ContainsFlow succeeds only if actual contains expected flow. Actual must be type of map[string][]string or []string.

func MatchTruthTable

func MatchTruthTable(expected *model.TruthTable, ignoreLoopback bool) types.GomegaMatcher

Types

type FlowMatcher

type FlowMatcher struct {
	Expected []string
}

func (*FlowMatcher) ContainsFlow

func (matcher *FlowMatcher) ContainsFlow(actualFlows []string) (success bool, err error)

func (*FlowMatcher) FailureMessage

func (matcher *FlowMatcher) FailureMessage(actual interface{}) (message string)

func (*FlowMatcher) Match

func (matcher *FlowMatcher) Match(actual interface{}) (success bool, err error)

func (*FlowMatcher) NegatedFailureMessage

func (matcher *FlowMatcher) NegatedFailureMessage(actual interface{}) (message string)

type RelativeFlowMatcher

type RelativeFlowMatcher struct {
	Expected map[string][]string
}

func (*RelativeFlowMatcher) FailureMessage

func (matcher *RelativeFlowMatcher) FailureMessage(actual interface{}) (message string)

func (*RelativeFlowMatcher) Match

func (matcher *RelativeFlowMatcher) Match(actual interface{}) (success bool, err error)

func (*RelativeFlowMatcher) NegatedFailureMessage

func (matcher *RelativeFlowMatcher) NegatedFailureMessage(actual interface{}) (message string)

type TruthTableMatcher

type TruthTableMatcher struct {
	Expected       *model.TruthTable
	IgnoreLoopback bool
}

func (*TruthTableMatcher) FailureMessage

func (matcher *TruthTableMatcher) FailureMessage(actual interface{}) (message string)

func (*TruthTableMatcher) Match

func (matcher *TruthTableMatcher) Match(actual interface{}) (success bool, err error)

func (*TruthTableMatcher) NegatedFailureMessage

func (matcher *TruthTableMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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