func (m *mReadCloserMockClose) Set(f func() (r error)) *ReadCloserMock {
	m.mock.CloseFunc = f
	return m.mock
}
Set uses given function f as a mock of ReadCloser.Close method
package loader
import (
	"sync/atomic"
	"time"
	minimock "github.com/gojuno/minimock/v3"
	testify_assert "github.com/stretchr/testify/assert"
)
type ReadCloserMock struct {
	t minimock.Tester
	CloseFunc       func() (r error)
	CloseCounter    uint64
	ClosePreCounter uint64
	CloseMock       mReadCloserMockClose
	ReadFunc       func(p []byte) (r int, r1 error)
	ReadCounter    uint64
	ReadPreCounter uint64
	ReadMock       mReadCloserMockRead
}
func NewReadCloserMock(t minimock.Tester) *ReadCloserMock {
	m := &ReadCloserMock{t: t}
	if controller, ok := t.(minimock.MockController); ok {
		controller.RegisterMocker(m)
	}
	m.CloseMock = mReadCloserMockClose{mock: m}
	m.ReadMock = mReadCloserMockRead{mock: m}
	return m
}
type mReadCloserMockClose struct {
	mock *ReadCloserMock
}
func (m *mReadCloserMockClose) Return(r error) *ReadCloserMock {
	m.mock.CloseFunc = func() error {
		return r
	}
	return m.mock
}