Documentation
¶
Index ¶
- type Expecter
- func (e *Expecter) Close(reason string)
- func (e *Expecter) ExpectMatch(ctx context.Context, str string) string
- func (e *Expecter) ExpectNoMatchBefore(ctx context.Context, match, before string) string
- func (e *Expecter) ExpectRegexMatch(ctx context.Context, str string) string
- func (e *Expecter) Logf(format string, args ...interface{})
- func (e *Expecter) Peek(ctx context.Context, n int) []byte
- func (e *Expecter) ReadAll() []byte
- func (e *Expecter) ReadLine(ctx context.Context) string
- func (e *Expecter) Rename(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Expecter ¶
type Expecter struct {
// contains filtered or unexported fields
}
func NewAttachedToInvocation ¶
func NewAttachedToInvocation(t *testing.T, invocation *serpent.Invocation) *Expecter
func NewAttachedToSSHSession ¶ added in v2.37.0
func (*Expecter) ExpectMatch ¶
func (*Expecter) ExpectNoMatchBefore ¶
ExpectNoMatchBefore validates that `match` does not occur before `before`.
func (*Expecter) ExpectRegexMatch ¶
Click to show internal directories.
Click to hide internal directories.