fakes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2014 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCreator

type FakeCreator struct {
	CreateSize int
	CreateDisk bslcdisk.Disk
	CreateErr  error
}

func (*FakeCreator) Create

func (c *FakeCreator) Create(size int) (bslcdisk.Disk, error)

type FakeDisk

type FakeDisk struct {
	DeleteCalled bool
	DeleteErr    error
	// contains filtered or unexported fields
}

func NewFakeDisk

func NewFakeDisk(id int) *FakeDisk

func NewFakeDiskWithPath

func NewFakeDiskWithPath(id int, path string) *FakeDisk

func (*FakeDisk) Delete

func (s *FakeDisk) Delete() error

func (FakeDisk) ID

func (s FakeDisk) ID() int

func (FakeDisk) Path

func (s FakeDisk) Path() string

type FakeFinder

type FakeFinder struct {
	FindID    int
	FindDisk  bslcdisk.Disk
	FindFound bool
	FindErr   error
}

func (*FakeFinder) Find

func (f *FakeFinder) Find(id int) (bslcdisk.Disk, bool, error)

Jump to

Keyboard shortcuts

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