Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
func NewMockWriter ¶
func NewMockWriter(t WriterType) *MockWriter
func (*MockWriter) SetSpecificType ¶
func (w *MockWriter) SetSpecificType(ts map[uint32]WriterType)
为某些写操作指定特定的类型,次数从 0 开始计数
type WriterType ¶
type WriterType uint8
const ( WriterTypeDoNothing WriterType = iota WriterTypeReturnError WriterTypeIntoBuffer )
Click to show internal directories.
Click to hide internal directories.