Documentation
¶
Overview ¶
Package pager is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContentFitsTerminal ¶ added in v1.182.0
ContentFitsTerminal checks if the given string content fits within terminal dimensions.
Types ¶
type MockPageCreator ¶
type MockPageCreator struct {
// contains filtered or unexported fields
}
MockPageCreator is a mock of PageCreator interface.
func NewMockPageCreator ¶
func NewMockPageCreator(ctrl *gomock.Controller) *MockPageCreator
NewMockPageCreator creates a new mock instance.
func (*MockPageCreator) EXPECT ¶
func (m *MockPageCreator) EXPECT() *MockPageCreatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPageCreator) Run ¶
func (m *MockPageCreator) Run(title, content string) error
Run mocks base method.
type MockPageCreatorMockRecorder ¶
type MockPageCreatorMockRecorder struct {
// contains filtered or unexported fields
}
MockPageCreatorMockRecorder is the mock recorder for MockPageCreator.
type MockTerminalSizer ¶ added in v1.182.0
Mock implementation for testing.
type PageCreator ¶
func New ¶
func New() PageCreator
func NewWithAtmosConfig ¶ added in v1.182.0
func NewWithAtmosConfig(enablePager bool) PageCreator
type TerminalSizer ¶ added in v1.182.0
Interface for testability.
Click to show internal directories.
Click to hide internal directories.