fakes

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeCommand

type FakeCommand struct {
	Stage       biui.Stage
	Args        []string
	PresetError error
	// contains filtered or unexported fields
}

func NewFakeCommand

func NewFakeCommand(name string, meta bicmd.Meta) *FakeCommand

func (*FakeCommand) GetArgs

func (f *FakeCommand) GetArgs() []string

func (*FakeCommand) Meta

func (f *FakeCommand) Meta() bicmd.Meta

func (*FakeCommand) Name

func (f *FakeCommand) Name() string

func (*FakeCommand) Run

func (f *FakeCommand) Run(stage biui.Stage, args []string) error

type FakeFactory

type FakeFactory struct {
	CommandName   string
	PresetError   error
	PresetCommand *FakeCommand
}

func (*FakeFactory) CreateCommand

func (f *FakeFactory) CreateCommand(name string) (cmd.Cmd, error)

Jump to

Keyboard shortcuts

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