Help us shape the future of Go! Take the 2026 Go Developer Survey

fakes

package
v0.0.96 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeASubstageOf added in v0.0.47

func BeASubstageOf(expected interface{}) types.GomegaMatcher

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