mocks

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2024 License: Apache-2.0, MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockFileInfo

type MockFileInfo struct {
	fs.FileInfo
}

MockFileInfo is a mock implementation of the fs.FileInfo interface.

func (MockFileInfo) Name

func (MockFileInfo) Name() string

type MockFileSeeker

type MockFileSeeker struct {
	*strings.Reader
}

MockFileSeeker is a mock implementation of the FileSeeker interface.

func NewMockFileSeeker

func NewMockFileSeeker(s string) MockFileSeeker

NewMockFileSeeker creates a new MockFileSeeker with the given content.

func (MockFileSeeker) Close

func (MockFileSeeker) Close() error

func (MockFileSeeker) Stat

func (MockFileSeeker) Stat() (fs.FileInfo, error)

Jump to

Keyboard shortcuts

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