browser

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Browser

type Browser struct{}

func (*Browser) Open

func (*Browser) Open(url string) error

Open opens the default browser.

func (*Browser) OpenCommand added in v1.25.0

func (*Browser) OpenCommand(ctx context.Context, url, command string) error

OpenCommand opens the browser using the command.

type Interface

type Interface interface {
	Open(url string) error
	OpenCommand(ctx context.Context, url, command string) error
}

type MockInterface added in v1.25.2

type MockInterface struct {
	mock.Mock
}

MockInterface is an autogenerated mock type for the Interface type

func NewMockInterface added in v1.25.2

func NewMockInterface(t mockConstructorTestingTNewMockInterface) *MockInterface

NewMockInterface creates a new instance of MockInterface. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*MockInterface) EXPECT added in v1.25.2

func (_m *MockInterface) EXPECT() *MockInterface_Expecter

func (*MockInterface) Open added in v1.25.2

func (_m *MockInterface) Open(url string) error

Open provides a mock function with given fields: url

func (*MockInterface) OpenCommand added in v1.25.2

func (_m *MockInterface) OpenCommand(ctx context.Context, url string, command string) error

OpenCommand provides a mock function with given fields: ctx, url, command

type MockInterface_Expecter added in v1.25.2

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

func (*MockInterface_Expecter) Open added in v1.25.2

func (_e *MockInterface_Expecter) Open(url interface{}) *MockInterface_Open_Call

Open is a helper method to define mock.On call

  • url string

func (*MockInterface_Expecter) OpenCommand added in v1.25.2

func (_e *MockInterface_Expecter) OpenCommand(ctx interface{}, url interface{}, command interface{}) *MockInterface_OpenCommand_Call

OpenCommand is a helper method to define mock.On call

  • ctx context.Context
  • url string
  • command string

type MockInterface_OpenCommand_Call added in v1.25.2

type MockInterface_OpenCommand_Call struct {
	*mock.Call
}

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

func (*MockInterface_OpenCommand_Call) Return added in v1.25.2

func (*MockInterface_OpenCommand_Call) Run added in v1.25.2

type MockInterface_Open_Call added in v1.25.2

type MockInterface_Open_Call struct {
	*mock.Call
}

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

func (*MockInterface_Open_Call) Return added in v1.25.2

func (*MockInterface_Open_Call) Run added in v1.25.2

func (_c *MockInterface_Open_Call) Run(run func(url string)) *MockInterface_Open_Call

Jump to

Keyboard shortcuts

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