fakes

package
v0.0.0-...-34d941c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 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 FakeStage

type FakeStage struct {
	PerformCalls []PerformCall
	SubStages    []*FakeStage
}

func NewFakeStage

func NewFakeStage() *FakeStage

func (*FakeStage) Perform

func (s *FakeStage) Perform(name string, closure func() error) error

func (*FakeStage) PerformComplex

func (s *FakeStage) PerformComplex(name string, closure func(biui.Stage) error) error

type FakeUI

type FakeUI struct {
	Said   []string
	Errors []string
}

func (*FakeUI) BeginLinef

func (ui *FakeUI) BeginLinef(pattern string, args ...interface{})

func (*FakeUI) EndLinef

func (ui *FakeUI) EndLinef(pattern string, args ...interface{})

func (*FakeUI) ErrorLinef

func (ui *FakeUI) ErrorLinef(pattern string, args ...interface{})

func (*FakeUI) PrintLinef

func (ui *FakeUI) PrintLinef(pattern string, args ...interface{})

type PerformCall

type PerformCall struct {
	Name      string
	Error     error
	SkipError error
	Stage     *FakeStage
}

Jump to

Keyboard shortcuts

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