Skip to content

Commit

Permalink
Fix premature field closing (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
xichen2020 authored Mar 3, 2019
1 parent 1c001ec commit ffd5077
Show file tree
Hide file tree
Showing 5 changed files with 1,177 additions and 5 deletions.
4 changes: 2 additions & 2 deletions generated/mocks/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package mocks

// mockgen rules for generating mocks for exported interfaces (reflection mode).
//go:generate sh -c "mockgen -package=digest $PACKAGE/digest FdWithDigestWriter | genclean -pkg $PACKAGE/digest -out $GOPATH/src/$PACKAGE/digest/digest_mock.go"
//go:generate sh -c "mockgen -package=index $PACKAGE/index DocIDSetIterator,SeekableDocIDSetIterator,DocIDPositionIterator | genclean -pkg $PACKAGE/index -out $GOPATH/src/$PACKAGE/index/index_mock.go"
//go:generate sh -c "mockgen -self_package=$GOPATH/src/$PACKAGE/index/field -package=field -destination=$GOPATH/src/$PACKAGE/index/field/field_mock.go $PACKAGE/index/field BaseFieldIterator"
//go:generate sh -c "mockgen -package=index $PACKAGE/index DocIDSet,DocIDSetIterator,SeekableDocIDSetIterator,DocIDPositionIterator | genclean -pkg $PACKAGE/index -out $GOPATH/src/$PACKAGE/index/index_mock.go"
//go:generate sh -c "mockgen -package=field -destination=$GOPATH/src/$PACKAGE/index/field/field_mock.go $PACKAGE/index/field BaseFieldIterator,CloseableNullField,CloseableBoolField,CloseableIntField,CloseableDoubleField,CloseableStringField,CloseableTimeField,DocsField"
//go:generate sh -c "mockgen -package=iterator $PACKAGE/values/iterator ForwardBoolIterator,ForwardIntIterator,ForwardDoubleIterator,ForwardStringIterator,ForwardTimeIterator,SeekableBoolIterator,SeekableIntIterator,SeekableDoubleIterator,SeekableStringIterator,SeekableTimeIterator,PositionIterator | genclean -pkg $PACKAGE/values/iterator -out $GOPATH/src/$PACKAGE/values/iterator/iterator_mock.go"
//go:generate sh -c "mockgen -package=values $PACKAGE/values BoolValues,IntValues,DoubleValues,StringValues,TimeValues | genclean -pkg $PACKAGE/values -out $GOPATH/src/$PACKAGE/values/values_mock.go"

Expand Down
Loading

0 comments on commit ffd5077

Please sign in to comment.