servicetest

package
v4.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package servicetest provides functions and utilities that might be useful for testing custom Benthos builds.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCLIWithArgs

func RunCLIWithArgs(ctx context.Context, args ...string)

RunCLIWithArgs executes Benthos as a CLI with an explicit set of arguments. This is useful for testing commands without needing to modify os.Args.

This call blocks until either:

1. The service shuts down gracefully due to the inputs closing 2. A termination signal is received 3. The provided context has a deadline that is reached, triggering graceful termination 4. The provided context is cancelled (WARNING, this prevents graceful termination)

Types

This section is empty.

Jump to

Keyboard shortcuts

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