matchers

package
v0.0.0-...-49d6047 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExitSuccessfully

func ExitSuccessfully() *exitMatcher

The Exit matcher operates on a session:

Expect(session).Should(ExitSuccessfully())

Exit passes if the session has already exited and has exited with code 0.

Note that the process must have already exited. To wait for a process to exit, use Eventually:

Eventually(session, 3).Should(ExitSuccessfully())

Types

type Exiter

type Exiter interface {
	ExitCode() int
}

Jump to

Keyboard shortcuts

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