func NewMockReadWrite() *MockReadWrite {
	m := &MockReadWrite{MockBase{EntryBase: plugin.NewEntry("mockrw")}}
	m.SetTestID("/mockrw")
	return m
}
NewMockReadWrite creates a new "mock" entry for reads and writes.
package plugintest
import (
	"context"
	"github.com/puppetlabs/wash/plugin"
	"github.com/stretchr/testify/mock"
)
type MockBase struct {
	plugin.EntryBase
	mock.Mock
}
func NewMockBase() *MockBase {
	m := &MockBase{EntryBase: plugin.NewEntry("mock")}
	m.SetTestID("/mock")
	return m
}
func (m *MockBase) Schema() *plugin.EntrySchema {
	return plugin.NewEntrySchema(m, "mock")
}
var _ = plugin.Entry(&MockBase{})
type MockRead struct {
	MockBase
}
func NewMockRead() *MockRead {
	m := &MockRead{MockBase{EntryBase: plugin.NewEntry("mockr")}}
	m.SetTestID("/mockr")
	return m
}
func (m *MockRead) Read(ctx context.Context) ([]byte, error) {
	args := m.Called(ctx)
	return args.Get(0).([]byte), args.Error(1)
}
var _ = plugin.Readable(&MockRead{})
type MockWrite struct {
	MockBase
}
func NewMockWrite() *MockWrite {
	m := &MockWrite{MockBase{EntryBase: plugin.NewEntry("mockw")}}
	m.SetTestID("/mockw")
	return m
}
func (m *MockWrite) Write(ctx context.Context, p []byte) error {
	args := m.Called(ctx, p)
	return args.Error(0)
}
var _ = plugin.Writable(&MockWrite{})
type MockReadWrite struct {
	MockBase
}