Documentation
¶
Index ¶
- func BeASubstageOf(expected interface{}) types.GomegaMatcher
- type Answer
- type FakeStage
- type FakeUI
- func (ui *FakeUI) AskForChoice(label string, options []string) (int, error)
- func (ui *FakeUI) AskForConfirmation() error
- func (ui *FakeUI) AskForPassword(label string) (string, error)
- func (ui *FakeUI) AskForText(label string) (string, error)
- func (ui *FakeUI) BeginLinef(pattern string, args ...interface{})
- func (ui *FakeUI) EndLinef(pattern string, args ...interface{})
- func (ui *FakeUI) ErrorLinef(pattern string, args ...interface{})
- func (ui *FakeUI) Flush()
- func (ui *FakeUI) IsInteractive() bool
- func (ui *FakeUI) PrintBlock(block string)
- func (ui *FakeUI) PrintErrorBlock(block string)
- func (ui *FakeUI) PrintLinef(pattern string, args ...interface{})
- func (ui *FakeUI) PrintTable(table Table)
- type PerformCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeASubstageOf ¶
func BeASubstageOf(expected interface{}) types.GomegaMatcher
Types ¶
type FakeStage ¶
type FakeStage struct {
PerformCalls []*PerformCall
SubStages []*FakeStage
}
func NewFakeStage ¶
func NewFakeStage() *FakeStage
func (*FakeStage) PerformComplex ¶
func (s *FakeStage) PerformComplex(name string, closure func(biui.Stage) error) error
type FakeUI ¶
type FakeUI struct {
Said []string
Errors []string
Blocks []string
Table Table
Tables []Table
AskedTextLabels []string
AskedText []Answer
AskedPasswordLabels []string
AskedPasswords []Answer
AskedChoiceCalled bool
AskedChoiceLabel string
AskedChoiceOptions []string
AskedChoiceChosens []int
AskedChoiceErrs []error
AskedConfirmationCalled bool
AskedConfirmationErr error
Interactive bool
Flushed bool
}
func (*FakeUI) AskForChoice ¶
func (ui *FakeUI) AskForChoice(label string, options []string) (int, error)
func (*FakeUI) AskForConfirmation ¶
func (ui *FakeUI) AskForConfirmation() error
func (*FakeUI) AskForPassword ¶
func (ui *FakeUI) AskForPassword(label string) (string, error)
func (*FakeUI) AskForText ¶
func (ui *FakeUI) AskForText(label string) (string, error)
func (*FakeUI) BeginLinef ¶
func (ui *FakeUI) BeginLinef(pattern string, args ...interface{})
func (*FakeUI) ErrorLinef ¶
func (ui *FakeUI) ErrorLinef(pattern string, args ...interface{})
func (*FakeUI) IsInteractive ¶
func (ui *FakeUI) IsInteractive() bool
func (*FakeUI) PrintBlock ¶
func (ui *FakeUI) PrintBlock(block string)
func (*FakeUI) PrintErrorBlock ¶
func (ui *FakeUI) PrintErrorBlock(block string)
func (*FakeUI) PrintLinef ¶
func (ui *FakeUI) PrintLinef(pattern string, args ...interface{})
func (*FakeUI) PrintTable ¶
func (ui *FakeUI) PrintTable(table Table)
type PerformCall ¶
type PerformCall struct {
Name string
Error error
SkipError error
Stage *FakeStage
}
Click to show internal directories.
Click to hide internal directories.