Documentation ¶
Index ¶
- type AnyConstraint
- type Behavior
- type Constraint
- type EqConstraint
- type FuncPara
- type PatchBuilder
- func (this *PatchBuilder) End()
- func (this *PatchBuilder) Func(target interface{}) *PatchBuilder
- func (this *PatchBuilder) Stubs() *PatchBuilder
- func (this *PatchBuilder) Then(behavior Behavior) *PatchBuilder
- func (this *PatchBuilder) Will(behavior Behavior) *PatchBuilder
- func (this *PatchBuilder) With(matcher ...Constraint) *PatchBuilder
- type RepeatBehavior
- type ReturnBehavior
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 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 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
Click to show internal directories.
Click to hide internal directories.