printer

package
v0.0.0-...-678e9c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPrintable

type MockPrintable struct {
	mock.Mock
}

MockPrintable is an autogenerated mock type for the Printable type

func NewMockPrintable

func NewMockPrintable(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPrintable

NewMockPrintable creates a new instance of MockPrintable. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockPrintable) EXPECT

func (_m *MockPrintable) EXPECT() *MockPrintable_Expecter

func (*MockPrintable) Headers

func (_m *MockPrintable) Headers() []string

Headers provides a mock function with given fields:

func (*MockPrintable) Values

func (_m *MockPrintable) Values() []string

Values provides a mock function with given fields:

type MockPrintable_Expecter

type MockPrintable_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockPrintable_Expecter) Headers

Headers is a helper method to define mock.On call

func (*MockPrintable_Expecter) Values

Values is a helper method to define mock.On call

type MockPrintable_Headers_Call

type MockPrintable_Headers_Call struct {
	*mock.Call
}

MockPrintable_Headers_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Headers'

func (*MockPrintable_Headers_Call) Return

func (*MockPrintable_Headers_Call) Run

func (*MockPrintable_Headers_Call) RunAndReturn

func (_c *MockPrintable_Headers_Call) RunAndReturn(run func() []string) *MockPrintable_Headers_Call

type MockPrintable_Values_Call

type MockPrintable_Values_Call struct {
	*mock.Call
}

MockPrintable_Values_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Values'

func (*MockPrintable_Values_Call) Return

func (*MockPrintable_Values_Call) Run

func (*MockPrintable_Values_Call) RunAndReturn

func (_c *MockPrintable_Values_Call) RunAndReturn(run func() []string) *MockPrintable_Values_Call

type MockPrinter

type MockPrinter struct {
	mock.Mock
}

MockPrinter is an autogenerated mock type for the Printer type

func NewMockPrinter

func NewMockPrinter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPrinter

NewMockPrinter creates a new instance of MockPrinter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockPrinter) EXPECT

func (_m *MockPrinter) EXPECT() *MockPrinter_Expecter

func (*MockPrinter) Print

func (_m *MockPrinter) Print(ref printer.Printable, values []printer.Printable) error

Print provides a mock function with given fields: ref, values

type MockPrinter_Expecter

type MockPrinter_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockPrinter_Expecter) Print

func (_e *MockPrinter_Expecter) Print(ref interface{}, values interface{}) *MockPrinter_Print_Call

Print is a helper method to define mock.On call

  • ref printer.Printable
  • values []printer.Printable

type MockPrinter_Print_Call

type MockPrinter_Print_Call struct {
	*mock.Call
}

MockPrinter_Print_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Print'

func (*MockPrinter_Print_Call) Return

func (*MockPrinter_Print_Call) Run

func (*MockPrinter_Print_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL