packermock

package
v0.0.0-...-c80ec77 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2017 License: MPL-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 MockUI

type MockUI struct {
	SayCount     int
	AskCount     int
	MessageCount int
	ErrorCount   int
	MachineCount int
}

MockUI is a mock implementation of Packer's Ui interface (packer/ui.go) It only includes counter to each of its methods, which will not do anything

func (*MockUI) Ask

func (ui *MockUI) Ask(query string) (string, error)

Ask counts calls to itself. Mock of the Packer Ui.Ask() method

func (*MockUI) Error

func (ui *MockUI) Error(message string)

Error counts calls to itself. Mock of the Packer Ui.Error() method

func (*MockUI) Machine

func (ui *MockUI) Machine(t string, args ...string)

Machine counts calls to itself. Mock of the Packer Ui.Machine() method

func (*MockUI) Message

func (ui *MockUI) Message(message string)

Message counts calls to itself. Mock of the Packer Ui.Message() method

func (*MockUI) Say

func (ui *MockUI) Say(message string)

Say counts calls to itself. Mock of the Packer Ui.Say() method

Jump to

Keyboard shortcuts

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