cmdtest_matchers

package
Version: v0.0.0-...-aa06bc0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2014 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExitWithMatcher

type ExitWithMatcher struct {
	Status int
}

func ExitWith

func ExitWith(status int) *ExitWithMatcher

func (*ExitWithMatcher) Match

func (m *ExitWithMatcher) Match(out interface{}) (bool, string, error)

type ExitWithTimeoutMatcher

type ExitWithTimeoutMatcher struct {
	Status  int
	Timeout time.Duration
}

func ExitWithTimeout

func ExitWithTimeout(status int, timeout time.Duration) *ExitWithTimeoutMatcher

func (*ExitWithTimeoutMatcher) Match

func (m *ExitWithTimeoutMatcher) Match(out interface{}) (bool, string, error)

type SayBranchesMatcher

type SayBranchesMatcher struct {
	Branches []cmdtest.ExpectBranch
}

func SayBranches

func SayBranches(branches ...cmdtest.ExpectBranch) *SayBranchesMatcher

func (*SayBranchesMatcher) Match

func (m *SayBranchesMatcher) Match(out interface{}) (bool, string, error)

type SayErrorMatcher

type SayErrorMatcher struct {
	Pattern string
}

func SayError

func SayError(pattern string) *SayErrorMatcher

func (*SayErrorMatcher) Match

func (m *SayErrorMatcher) Match(out interface{}) (bool, string, error)

type SayMatcher

type SayMatcher struct {
	Pattern string
}

func Say

func Say(pattern string) *SayMatcher

func (*SayMatcher) Match

func (m *SayMatcher) Match(out interface{}) (bool, string, error)

type SayWithTimeoutMatcher

type SayWithTimeoutMatcher struct {
	Pattern string
	Timeout time.Duration
}

func SayWithTimeout

func SayWithTimeout(pattern string, timeout time.Duration) *SayWithTimeoutMatcher

func (*SayWithTimeoutMatcher) Match

func (m *SayWithTimeoutMatcher) Match(out interface{}) (bool, string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL