Documentation ¶
Index ¶
- func WithMocks(f func(input *MockInput))
- type MockInput
- func (m *MockInput) AssertBufferConsumed(t *testing.T) bool
- func (m *MockInput) BeginReadKey() error
- func (m *MockInput) BufferConsumed() bool
- func (m *MockInput) EndReadKey() error
- func (m *MockInput) PutKeys(keys ...console.Key)
- func (m *MockInput) PutString(buffer string)
- func (m *MockInput) ReadKey() (console.Key, rune, error)
- func (m *MockInput) ReadLine() (string, error)
- func (m *MockInput) ReadPassword() (string, error)
- type ReadKeyResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockInput ¶
type MockInput struct {
// contains filtered or unexported fields
}
func NewMockInput ¶
func NewMockInput() *MockInput
func (*MockInput) AssertBufferConsumed ¶
func (*MockInput) BeginReadKey ¶
func (*MockInput) BufferConsumed ¶
func (*MockInput) EndReadKey ¶
func (*MockInput) ReadPassword ¶
type ReadKeyResult ¶
Click to show internal directories.
Click to hide internal directories.