fake

package
Version: v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

This file was generated by counterfeiter

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Composer

type Composer struct {
	ComposeStub func(bundle *parcello.Bundle) error
	// contains filtered or unexported fields
}

func (*Composer) Compose

func (fake *Composer) Compose(bundle *parcello.Bundle) error

func (*Composer) ComposeArgsForCall

func (fake *Composer) ComposeArgsForCall(i int) *parcello.Bundle

func (*Composer) ComposeCallCount

func (fake *Composer) ComposeCallCount() int

func (*Composer) ComposeReturns

func (fake *Composer) ComposeReturns(result1 error)

func (*Composer) Invocations

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

type Compressor

type Compressor struct {
	CompressStub func(ctx *parcello.CompressorContext) (*parcello.Bundle, error)
	// contains filtered or unexported fields
}

func (*Compressor) Compress

func (fake *Compressor) Compress(ctx *parcello.CompressorContext) (*parcello.Bundle, error)

func (*Compressor) CompressArgsForCall

func (fake *Compressor) CompressArgsForCall(i int) *parcello.CompressorContext

func (*Compressor) CompressCallCount

func (fake *Compressor) CompressCallCount() int

func (*Compressor) CompressReturns

func (fake *Compressor) CompressReturns(result1 *parcello.Bundle, result2 error)

func (*Compressor) Invocations

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

type File

type File struct {
	CloseStub func() error

	ReadStub func(p []byte) (n int, err error)

	SeekStub func(offset int64, whence int) (int64, error)

	ReaddirStub func(count int) ([]os.FileInfo, error)

	StatStub func() (os.FileInfo, error)

	WriteStub func(p []byte) (n int, err error)

	ReadAtStub func(p []byte, off int64) (n int, err error)
	// contains filtered or unexported fields
}

func (*File) Close

func (fake *File) Close() error

func (*File) CloseCallCount

func (fake *File) CloseCallCount() int

func (*File) CloseReturns

func (fake *File) CloseReturns(result1 error)

func (*File) Invocations

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

func (*File) Read

func (fake *File) Read(p []byte) (n int, err error)

func (*File) ReadArgsForCall

func (fake *File) ReadArgsForCall(i int) []byte

func (*File) ReadAt

func (fake *File) ReadAt(p []byte, off int64) (n int, err error)

func (*File) ReadAtArgsForCall

func (fake *File) ReadAtArgsForCall(i int) ([]byte, int64)

func (*File) ReadAtCallCount

func (fake *File) ReadAtCallCount() int

func (*File) ReadAtReturns

func (fake *File) ReadAtReturns(result1 int, result2 error)

func (*File) ReadCallCount

func (fake *File) ReadCallCount() int

func (*File) ReadReturns

func (fake *File) ReadReturns(result1 int, result2 error)

func (*File) Readdir

func (fake *File) Readdir(count int) ([]os.FileInfo, error)

func (*File) ReaddirArgsForCall

func (fake *File) ReaddirArgsForCall(i int) int

func (*File) ReaddirCallCount

func (fake *File) ReaddirCallCount() int

func (*File) ReaddirReturns

func (fake *File) ReaddirReturns(result1 []os.FileInfo, result2 error)

func (*File) Seek

func (fake *File) Seek(offset int64, whence int) (int64, error)

func (*File) SeekArgsForCall

func (fake *File) SeekArgsForCall(i int) (int64, int)

func (*File) SeekCallCount

func (fake *File) SeekCallCount() int

func (*File) SeekReturns

func (fake *File) SeekReturns(result1 int64, result2 error)

func (*File) Stat

func (fake *File) Stat() (os.FileInfo, error)

func (*File) StatCallCount

func (fake *File) StatCallCount() int

func (*File) StatReturns

func (fake *File) StatReturns(result1 os.FileInfo, result2 error)

func (*File) Write

func (fake *File) Write(p []byte) (n int, err error)

func (*File) WriteArgsForCall

func (fake *File) WriteArgsForCall(i int) []byte

func (*File) WriteCallCount

func (fake *File) WriteCallCount() int

func (*File) WriteReturns

func (fake *File) WriteReturns(result1 int, result2 error)

type FileSystem

type FileSystem struct {
	OpenStub func(name string) (http.File, error)

	WalkStub func(dir string, fn filepath.WalkFunc) error

	OpenFileStub func(name string, flag int, perm os.FileMode) (parcello.File, error)
	// contains filtered or unexported fields
}

func (*FileSystem) Invocations

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

func (*FileSystem) Open

func (fake *FileSystem) Open(name string) (http.File, error)

func (*FileSystem) OpenArgsForCall

func (fake *FileSystem) OpenArgsForCall(i int) string

func (*FileSystem) OpenCallCount

func (fake *FileSystem) OpenCallCount() int

func (*FileSystem) OpenFile

func (fake *FileSystem) OpenFile(name string, flag int, perm os.FileMode) (parcello.File, error)

func (*FileSystem) OpenFileArgsForCall

func (fake *FileSystem) OpenFileArgsForCall(i int) (string, int, os.FileMode)

func (*FileSystem) OpenFileCallCount

func (fake *FileSystem) OpenFileCallCount() int

func (*FileSystem) OpenFileReturns

func (fake *FileSystem) OpenFileReturns(result1 parcello.File, result2 error)

func (*FileSystem) OpenReturns

func (fake *FileSystem) OpenReturns(result1 http.File, result2 error)

func (*FileSystem) Walk

func (fake *FileSystem) Walk(dir string, fn filepath.WalkFunc) error

func (*FileSystem) WalkArgsForCall

func (fake *FileSystem) WalkArgsForCall(i int) (string, filepath.WalkFunc)

func (*FileSystem) WalkCallCount

func (fake *FileSystem) WalkCallCount() int

func (*FileSystem) WalkReturns

func (fake *FileSystem) WalkReturns(result1 error)

type FileSystemManager

type FileSystemManager struct {
	OpenStub func(name string) (http.File, error)

	WalkStub func(dir string, fn filepath.WalkFunc) error

	OpenFileStub func(name string, flag int, perm os.FileMode) (parcello.File, error)

	DirStub func(name string) (parcello.FileSystemManager, error)

	AddStub func(resource *parcello.Resource) error
	// contains filtered or unexported fields
}

func (*FileSystemManager) Add

func (fake *FileSystemManager) Add(resource *parcello.Resource) error

func (*FileSystemManager) AddArgsForCall

func (fake *FileSystemManager) AddArgsForCall(i int) *parcello.Resource

func (*FileSystemManager) AddCallCount

func (fake *FileSystemManager) AddCallCount() int

func (*FileSystemManager) AddReturns

func (fake *FileSystemManager) AddReturns(result1 error)

func (*FileSystemManager) Dir

func (*FileSystemManager) DirArgsForCall

func (fake *FileSystemManager) DirArgsForCall(i int) string

func (*FileSystemManager) DirCallCount

func (fake *FileSystemManager) DirCallCount() int

func (*FileSystemManager) DirReturns

func (fake *FileSystemManager) DirReturns(result1 parcello.FileSystemManager, result2 error)

func (*FileSystemManager) Invocations

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

func (*FileSystemManager) Open

func (fake *FileSystemManager) Open(name string) (http.File, error)

func (*FileSystemManager) OpenArgsForCall

func (fake *FileSystemManager) OpenArgsForCall(i int) string

func (*FileSystemManager) OpenCallCount

func (fake *FileSystemManager) OpenCallCount() int

func (*FileSystemManager) OpenFile

func (fake *FileSystemManager) OpenFile(name string, flag int, perm os.FileMode) (parcello.File, error)

func (*FileSystemManager) OpenFileArgsForCall

func (fake *FileSystemManager) OpenFileArgsForCall(i int) (string, int, os.FileMode)

func (*FileSystemManager) OpenFileCallCount

func (fake *FileSystemManager) OpenFileCallCount() int

func (*FileSystemManager) OpenFileReturns

func (fake *FileSystemManager) OpenFileReturns(result1 parcello.File, result2 error)

func (*FileSystemManager) OpenReturns

func (fake *FileSystemManager) OpenReturns(result1 http.File, result2 error)

func (*FileSystemManager) Walk

func (fake *FileSystemManager) Walk(dir string, fn filepath.WalkFunc) error

func (*FileSystemManager) WalkArgsForCall

func (fake *FileSystemManager) WalkArgsForCall(i int) (string, filepath.WalkFunc)

func (*FileSystemManager) WalkCallCount

func (fake *FileSystemManager) WalkCallCount() int

func (*FileSystemManager) WalkReturns

func (fake *FileSystemManager) WalkReturns(result1 error)

Jump to

Keyboard shortcuts

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