expect

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonExpectation

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

type ExpectationActionMaker

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

func CreateExpectationActionMaker

func CreateExpectationActionMaker(
	fnd app.Foundation,
	expectationsMaker expectations.Maker,
	parametersMaker parameters.Maker,
) *ExpectationActionMaker

func (*ExpectationActionMaker) MakeCommonExpectation

func (m *ExpectationActionMaker) MakeCommonExpectation(
	sl services.ServiceLocator,
	serviceName string,
	timeout,
	defaultTimeout int,
	when string,
) (*CommonExpectation, error)

func (*ExpectationActionMaker) MakeCustomAction

func (m *ExpectationActionMaker) MakeCustomAction(
	config *types.CustomExpectationAction,
	sl services.ServiceLocator,
	defaultTimeout int,
) (action.Action, error)

func (*ExpectationActionMaker) MakeMetricsAction

func (m *ExpectationActionMaker) MakeMetricsAction(
	config *types.MetricsExpectationAction,
	sl services.ServiceLocator,
	defaultTimeout int,
) (action.Action, error)

func (*ExpectationActionMaker) MakeOutputAction

func (m *ExpectationActionMaker) MakeOutputAction(
	config *types.OutputExpectationAction,
	sl services.ServiceLocator,
	defaultTimeout int,
) (action.Action, error)

func (*ExpectationActionMaker) MakeResponseAction

func (m *ExpectationActionMaker) MakeResponseAction(
	config *types.ResponseExpectationAction,
	sl services.ServiceLocator,
	defaultTimeout int,
) (action.Action, error)

type Maker

type Maker interface {
	MakeCustomAction(
		config *types.CustomExpectationAction,
		sl services.ServiceLocator,
		defaultTimeout int,
	) (action.Action, error)
	MakeMetricsAction(
		config *types.MetricsExpectationAction,
		sl services.ServiceLocator,
		defaultTimeout int,
	) (action.Action, error)
	MakeOutputAction(
		config *types.OutputExpectationAction,
		sl services.ServiceLocator,
		defaultTimeout int,
	) (action.Action, error)
	MakeResponseAction(
		config *types.ResponseExpectationAction,
		sl services.ServiceLocator,
		defaultTimeout int,
	) (action.Action, error)
}

Jump to

Keyboard shortcuts

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