fakes

package
v0.0.395 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 License: Apache-2.0 Imports: 2 Imported by: 13

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
	CompressFilesInDirTarballPath string
	CompressFilesInDirErr         error
	CompressFilesInDirCallBack    func()

	CompressSpecificFilesInDirDir         string
	CompressSpecificFilesInDirFiles       []string
	CompressSpecificFilesInDirTarballPath string
	CompressSpecificFilesInDirErr         error
	CompressSpecificFilesInDirCallBack    func()

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

	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) (string, error)

func (*FakeCompressor) CompressSpecificFilesInDir

func (fc *FakeCompressor) CompressSpecificFilesInDir(dir string, files []string) (string, error)

func (*FakeCompressor) DecompressFileToDir

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

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