mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	MockInitiateRun func(client.InitiateRunConfig) (*url.URL, error)
}

func (*Client) InitiateRun

func (c *Client) InitiateRun(cfg client.InitiateRunConfig) (*url.URL, error)

type DirEntry

type DirEntry struct {
	FileName    string
	IsDirectory bool
}

func (DirEntry) IsDir

func (d DirEntry) IsDir() bool

func (DirEntry) Name

func (d DirEntry) Name() string

type FileSystem

type FileSystem struct {
	MockOpen    func(name string) (fs.File, error)
	MockReadDir func(name string) ([]fs.DirEntry, error)
}

func (*FileSystem) Open

func (f *FileSystem) Open(name string) (fs.File, error)

func (*FileSystem) ReadDir

func (f *FileSystem) ReadDir(name string) ([]fs.DirEntry, error)

Jump to

Keyboard shortcuts

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