func (m *ReadCloserMock) CloseMinimockCounter() uint64 {
	return atomic.LoadUint64(&m.CloseCounter)
}
CloseMinimockCounter returns a count of ReadCloserMock.CloseFunc invocations
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
}
func (m *mReadCloserMockClose) Set(f func() (r error)) *ReadCloserMock {
	m.mock.CloseFunc = f
	return m.mock
}
func (m *ReadCloserMock) Close() (r error) {
	atomic.AddUint64(&m.ClosePreCounter, 1)
	defer atomic.AddUint64(&m.CloseCounter, 1)
	if m.CloseFunc == nil {
		m.t.Fatal("Unexpected call to ReadCloserMock.Close")
		return
	}
	return m.CloseFunc()
}