Help us shape the future of Go! Take the 2026 Go Developer Survey

fakes

package
v0.0.648 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Overview

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCompressor

type FakeCompressor struct {
	CompressFilesInDirDir         string
	CompressFilesInDirOptions     boshcmd.CompressorOptions
	CompressFilesInDirTarballPath string
	CompressFilesInDirErr         error
	CompressFilesInDirCallBack    func()

	CompressSpecificFilesInDirDir         string
	CompressSpecificFilesInDirFiles       []string
	CompressSpecificFilesInDirOptions     boshcmd.CompressorOptions
	CompressSpecificFilesInDirTarballPath string
	CompressSpecificFilesInDirErr         error
	CompressSpecificFilesInDirCallBack    func()

	DecompressFileToDirTarballPaths []string
	DecompressFileToDirDirs         []string
	DecompressFileToDirOptions      []boshcmd.CompressorOptions
	DecompressFileToDirErr          error
	DecompressFileToDirCallBack     func()

	IsNonCompressedTarballPath    string
	IsNonCompressedTarballReturns bool

	CleanUpTarballPath string
	CleanUpErr         error
}

func NewFakeCompressor

func NewFakeCompressor() *FakeCompressor

func (*FakeCompressor) CleanUp

func (fc *FakeCompressor) CleanUp(tarballPath string) error

func (*FakeCompressor) CompressFilesInDir

func (fc *FakeCompressor) CompressFilesInDir(dir string, options boshcmd.CompressorOptions) (string, error)

func (*FakeCompressor) CompressSpecificFilesInDir

func (fc *FakeCompressor) CompressSpecificFilesInDir(dir string, files []string, options boshcmd.CompressorOptions) (string, error)

func (*FakeCompressor) DecompressFileToDir

func (fc *FakeCompressor) DecompressFileToDir(tarballPath string, dir string, options boshcmd.CompressorOptions) (err error)

func (*FakeCompressor) IsNonCompressedTarball added in v0.0.564

func (fc *FakeCompressor) IsNonCompressedTarball(path string) bool

type FakeCopier

type FakeCopier struct {
	FilteredCopyToTempTempDir      string
	FilteredCopyToTempError        error
	FilteredCopyToTempDir          string
	FilteredCopyToTempFilters      []string
	FilteredMultiCopyToTempDirs    []fileutil.DirToCopy
	FilteredMultiCopyToTempFilters []string
	FilteredMultiCopyToTempError   error
	FilteredMultiCopyToTempDir     string

	CleanUpTempDir string
}

func NewFakeCopier

func NewFakeCopier() (copier *FakeCopier)

func (*FakeCopier) CleanUp

func (c *FakeCopier) CleanUp(tempDir string)

func (*FakeCopier) FilteredCopyToTemp

func (c *FakeCopier) FilteredCopyToTemp(dir string, filters []string) (tempDir string, err error)

func (*FakeCopier) FilteredMultiCopyToTemp added in v0.0.354

func (c *FakeCopier) FilteredMultiCopyToTemp(dirs []fileutil.DirToCopy, filters []string) (tempDir string, err error)

type FakeMover

type FakeMover struct {
	MoveStub func(string, string) error
	// contains filtered or unexported fields
}

func (*FakeMover) Invocations

func (fake *FakeMover) Invocations() map[string][][]interface{}

func (*FakeMover) Move

func (fake *FakeMover) Move(arg1 string, arg2 string) error

func (*FakeMover) MoveArgsForCall

func (fake *FakeMover) MoveArgsForCall(i int) (string, string)

func (*FakeMover) MoveCallCount

func (fake *FakeMover) MoveCallCount() int

func (*FakeMover) MoveReturns

func (fake *FakeMover) MoveReturns(result1 error)

Jump to

Keyboard shortcuts

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