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

View Source
const FakeStemcellKind = "FakeStemcellKind"

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeFinder

type FakeFinder struct {
	FindID       int
	FindUuid     string
	FindStemcell bslcstem.Stemcell
	FindFound    bool
	FindErr      error
}

func (*FakeFinder) Find

func (f *FakeFinder) Find(uuid string) (bslcstem.Stemcell, bool, error)

func (*FakeFinder) FindById

func (f *FakeFinder) FindById(id int) (bslcstem.Stemcell, bool, error)

type FakeStemcell

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

func NewFakeStemcell

func NewFakeStemcell(id int, uuid string, kind string) *FakeStemcell

func (*FakeStemcell) Delete

func (s *FakeStemcell) Delete() error

func (FakeStemcell) ID

func (s FakeStemcell) ID() int

func (FakeStemcell) Kind

func (s FakeStemcell) Kind() string

func (FakeStemcell) Uuid

func (s FakeStemcell) Uuid() string

Jump to

Keyboard shortcuts

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