Skip to content

Commit

Permalink
Tweak receiver name
Browse files Browse the repository at this point in the history
  • Loading branch information
k-yomo committed Nov 26, 2020
1 parent 4200b7d commit baa10e4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ func NewFactory(t *testing.T, v interface{}) *Factory {
return &Factory{t: t, productType: reflect.PtrTo(reflect.TypeOf(v)), index: 0, last: v}
}

func (uf *Factory) NewBuilder(bluePrint BluePrintFunc, traits ...interface{}) *Builder {
return &Builder{Factory: uf, bluePrint: bluePrint, traits: traits}
func (f *Factory) NewBuilder(bluePrint BluePrintFunc, traits ...interface{}) *Builder {
return &Builder{Factory: f, bluePrint: bluePrint, traits: traits}
}

func (uf *Factory) Reset() {
uf.last = reflect.New(uf.productType.Elem()).Elem().Interface()
uf.index = 0
func (f *Factory) Reset() {
f.last = reflect.New(f.productType.Elem()).Elem().Interface()
f.index = 0
}

func (b *Builder) EachParam(params ...interface{}) *Builder {
Expand Down

0 comments on commit baa10e4

Please sign in to comment.