ipcchannelmock

package
v0.0.0-...-0117b6e Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsExists

func IsExists(name string) bool

Types

type FakeChannel

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

func NewFakeChannel

func NewFakeChannel(log log.T, mode filewatcherbasedipc.Mode, name string) *FakeChannel

func (*FakeChannel) CleanupOwnModeFiles

func (f *FakeChannel) CleanupOwnModeFiles()

func (*FakeChannel) Close

func (f *FakeChannel) Close()

close stops the receiving channel

func (*FakeChannel) Destroy

func (f *FakeChannel) Destroy()

func (*FakeChannel) GetMessage

func (f *FakeChannel) GetMessage() <-chan string

func (*FakeChannel) GetPath

func (f *FakeChannel) GetPath() string

func (*FakeChannel) Send

func (f *FakeChannel) Send(message string) error

type MockedChannel

type MockedChannel struct {
	mock.Mock
}

func (*MockedChannel) CleanupOwnModeFiles

func (m *MockedChannel) CleanupOwnModeFiles()

func (*MockedChannel) Close

func (m *MockedChannel) Close()

func (*MockedChannel) Destroy

func (m *MockedChannel) Destroy()

func (*MockedChannel) GetMessage

func (m *MockedChannel) GetMessage() <-chan string

func (*MockedChannel) GetPath

func (m *MockedChannel) GetPath() string

func (*MockedChannel) Send

func (m *MockedChannel) Send(msg string) error

Jump to

Keyboard shortcuts

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