dsl

package
v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnyConstraint

type AnyConstraint struct {
}

func (*AnyConstraint) Eval

func (this *AnyConstraint) Eval(x interface{}) bool

type Behavior

type Behavior interface {
	Apply() []Params
}

func Repeat

func Repeat(behavior Behavior, times int) Behavior

func Return

func Return(x ...interface{}) Behavior

type Constraint

type Constraint interface {
	Eval(x interface{}) bool
}

func Any

func Any() Constraint

func Eq

func Eq(x interface{}) Constraint

type EqConstraint

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

func (*EqConstraint) Eval

func (this *EqConstraint) Eval(x interface{}) bool

type FuncPara

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

type PatchBuilder

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

func NewPatchBuilder

func NewPatchBuilder(patches *Patches) *PatchBuilder

func (*PatchBuilder) End

func (this *PatchBuilder) End()

func (*PatchBuilder) Func

func (this *PatchBuilder) Func(target interface{}) *PatchBuilder

func (*PatchBuilder) Stubs

func (this *PatchBuilder) Stubs() *PatchBuilder

func (*PatchBuilder) Then

func (this *PatchBuilder) Then(behavior Behavior) *PatchBuilder

func (*PatchBuilder) Will

func (this *PatchBuilder) Will(behavior Behavior) *PatchBuilder

func (*PatchBuilder) With

func (this *PatchBuilder) With(matcher ...Constraint) *PatchBuilder

type RepeatBehavior

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

func (*RepeatBehavior) Apply

func (this *RepeatBehavior) Apply() []Params

type ReturnBehavior

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

func (*ReturnBehavior) Apply

func (this *ReturnBehavior) Apply() []Params

Jump to

Keyboard shortcuts

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