stream

package
v0.0.0-...-873fb03 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileManagerMock

type FileManagerMock struct {
	WriteFunc  func(path string, content []byte) error
	ReadFunc   func(path string) ([]byte, error)
	ExistsFunc func(path string) bool
	RemoveFunc func(path string) error
}

func (FileManagerMock) Exists

func (f FileManagerMock) Exists(path string) bool

func (FileManagerMock) Read

func (f FileManagerMock) Read(path string) ([]byte, error)

func (FileManagerMock) Remove

func (f FileManagerMock) Remove(path string) error

func (FileManagerMock) Write

func (f FileManagerMock) Write(path string, content []byte) error

type FileReadExisterCustomMock

type FileReadExisterCustomMock struct {
	ReadMock   func(path string) ([]byte, error)
	ExistsMock func(path string) bool
}

func (FileReadExisterCustomMock) Exists

func (fmc FileReadExisterCustomMock) Exists(path string) bool

Exists of FileManagerCustomMock

func (FileReadExisterCustomMock) Read

func (fmc FileReadExisterCustomMock) Read(path string) ([]byte, error)

Read of FileManagerCustomMock

type FileReaderCustomMock

type FileReaderCustomMock struct {
	ReadMock func(path string) ([]byte, error)
}

func (FileReaderCustomMock) Read

func (fmr FileReaderCustomMock) Read(path string) ([]byte, error)

type FileWriteReadExisterCustomMock

type FileWriteReadExisterCustomMock struct {
	WriteMock  func(path string, content []byte) error
	ReadMock   func(path string) ([]byte, error)
	ExistsMock func(path string) bool
}

func (FileWriteReadExisterCustomMock) Exists

func (FileWriteReadExisterCustomMock) Read

func (f FileWriteReadExisterCustomMock) Read(path string) ([]byte, error)

func (FileWriteReadExisterCustomMock) Write

func (f FileWriteReadExisterCustomMock) Write(path string, content []byte) error

type FileWriteReadExisterMock

type FileWriteReadExisterMock struct{}

func (FileWriteReadExisterMock) Exists

func (FileWriteReadExisterMock) Exists(path string) bool

func (FileWriteReadExisterMock) Read

func (FileWriteReadExisterMock) Read(path string) ([]byte, error)

func (FileWriteReadExisterMock) Write

func (FileWriteReadExisterMock) Write(path string, content []byte) error

type FileWriterCustomMock

type FileWriterCustomMock struct {
	WriteMock func(path string, content []byte) error
}

func (FileWriterCustomMock) Write

func (wcm FileWriterCustomMock) Write(path string, content []byte) error

type FileWriterMock

type FileWriterMock struct{}

func (FileWriterMock) Write

func (FileWriterMock) Write(path string, content []byte) error

Jump to

Keyboard shortcuts

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