mocks_cups

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCUPSClientInterface

type MockCUPSClientInterface struct {
	mock.Mock
}

MockCUPSClientInterface is an autogenerated mock type for the CUPSClientInterface type

func NewMockCUPSClientInterface

func NewMockCUPSClientInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockCUPSClientInterface

NewMockCUPSClientInterface creates a new instance of MockCUPSClientInterface. 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 (*MockCUPSClientInterface) CancelAllJob

func (_m *MockCUPSClientInterface) CancelAllJob(printer string, purge bool) error

CancelAllJob provides a mock function with given fields: printer, purge

func (*MockCUPSClientInterface) CancelJob

func (_m *MockCUPSClientInterface) CancelJob(jobID int, purge bool) error

CancelJob provides a mock function with given fields: jobID, purge

func (*MockCUPSClientInterface) EXPECT

func (*MockCUPSClientInterface) GetJobs

func (_m *MockCUPSClientInterface) GetJobs(printer string, class string, whichJobs string, myJobs bool, firstJobId int, limit int, attributes []string) (map[int]ipp.Attributes, error)

GetJobs provides a mock function with given fields: printer, class, whichJobs, myJobs, firstJobId, limit, attributes

func (*MockCUPSClientInterface) GetPrinters

func (_m *MockCUPSClientInterface) GetPrinters(attributes []string) (map[string]ipp.Attributes, error)

GetPrinters provides a mock function with given fields: attributes

func (*MockCUPSClientInterface) PausePrinter

func (_m *MockCUPSClientInterface) PausePrinter(printer string) error

PausePrinter provides a mock function with given fields: printer

func (*MockCUPSClientInterface) ResumePrinter

func (_m *MockCUPSClientInterface) ResumePrinter(printer string) error

ResumePrinter provides a mock function with given fields: printer

func (*MockCUPSClientInterface) SendRequest

func (_m *MockCUPSClientInterface) SendRequest(url string, req *ipp.Request, additionalResponseData io.Writer) (*ipp.Response, error)

SendRequest provides a mock function with given fields: url, req, additionalResponseData

type MockCUPSClientInterface_CancelAllJob_Call

type MockCUPSClientInterface_CancelAllJob_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_CancelAllJob_Call) Return

func (*MockCUPSClientInterface_CancelAllJob_Call) Run

func (*MockCUPSClientInterface_CancelAllJob_Call) RunAndReturn

type MockCUPSClientInterface_CancelJob_Call

type MockCUPSClientInterface_CancelJob_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_CancelJob_Call) Return

func (*MockCUPSClientInterface_CancelJob_Call) Run

func (*MockCUPSClientInterface_CancelJob_Call) RunAndReturn

type MockCUPSClientInterface_Expecter

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

func (*MockCUPSClientInterface_Expecter) CancelAllJob

func (_e *MockCUPSClientInterface_Expecter) CancelAllJob(printer interface{}, purge interface{}) *MockCUPSClientInterface_CancelAllJob_Call

CancelAllJob is a helper method to define mock.On call

  • printer string
  • purge bool

func (*MockCUPSClientInterface_Expecter) CancelJob

func (_e *MockCUPSClientInterface_Expecter) CancelJob(jobID interface{}, purge interface{}) *MockCUPSClientInterface_CancelJob_Call

CancelJob is a helper method to define mock.On call

  • jobID int
  • purge bool

func (*MockCUPSClientInterface_Expecter) GetJobs

func (_e *MockCUPSClientInterface_Expecter) GetJobs(printer interface{}, class interface{}, whichJobs interface{}, myJobs interface{}, firstJobId interface{}, limit interface{}, attributes interface{}) *MockCUPSClientInterface_GetJobs_Call

GetJobs is a helper method to define mock.On call

  • printer string
  • class string
  • whichJobs string
  • myJobs bool
  • firstJobId int
  • limit int
  • attributes []string

func (*MockCUPSClientInterface_Expecter) GetPrinters

func (_e *MockCUPSClientInterface_Expecter) GetPrinters(attributes interface{}) *MockCUPSClientInterface_GetPrinters_Call

GetPrinters is a helper method to define mock.On call

  • attributes []string

func (*MockCUPSClientInterface_Expecter) PausePrinter

func (_e *MockCUPSClientInterface_Expecter) PausePrinter(printer interface{}) *MockCUPSClientInterface_PausePrinter_Call

PausePrinter is a helper method to define mock.On call

  • printer string

func (*MockCUPSClientInterface_Expecter) ResumePrinter

func (_e *MockCUPSClientInterface_Expecter) ResumePrinter(printer interface{}) *MockCUPSClientInterface_ResumePrinter_Call

ResumePrinter is a helper method to define mock.On call

  • printer string

func (*MockCUPSClientInterface_Expecter) SendRequest

func (_e *MockCUPSClientInterface_Expecter) SendRequest(url interface{}, req interface{}, additionalResponseData interface{}) *MockCUPSClientInterface_SendRequest_Call

SendRequest is a helper method to define mock.On call

  • url string
  • req *ipp.Request
  • additionalResponseData io.Writer

type MockCUPSClientInterface_GetJobs_Call

type MockCUPSClientInterface_GetJobs_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_GetJobs_Call) Return

func (*MockCUPSClientInterface_GetJobs_Call) Run

func (_c *MockCUPSClientInterface_GetJobs_Call) Run(run func(printer string, class string, whichJobs string, myJobs bool, firstJobId int, limit int, attributes []string)) *MockCUPSClientInterface_GetJobs_Call

func (*MockCUPSClientInterface_GetJobs_Call) RunAndReturn

type MockCUPSClientInterface_GetPrinters_Call

type MockCUPSClientInterface_GetPrinters_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_GetPrinters_Call) Return

func (*MockCUPSClientInterface_GetPrinters_Call) Run

func (*MockCUPSClientInterface_GetPrinters_Call) RunAndReturn

type MockCUPSClientInterface_PausePrinter_Call

type MockCUPSClientInterface_PausePrinter_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_PausePrinter_Call) Return

func (*MockCUPSClientInterface_PausePrinter_Call) Run

func (*MockCUPSClientInterface_PausePrinter_Call) RunAndReturn

type MockCUPSClientInterface_ResumePrinter_Call

type MockCUPSClientInterface_ResumePrinter_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_ResumePrinter_Call) Return

func (*MockCUPSClientInterface_ResumePrinter_Call) Run

func (*MockCUPSClientInterface_ResumePrinter_Call) RunAndReturn

type MockCUPSClientInterface_SendRequest_Call

type MockCUPSClientInterface_SendRequest_Call struct {
	*mock.Call
}

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

func (*MockCUPSClientInterface_SendRequest_Call) Return

func (*MockCUPSClientInterface_SendRequest_Call) Run

func (*MockCUPSClientInterface_SendRequest_Call) RunAndReturn

Jump to

Keyboard shortcuts

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