daemonhelper

package
v0.0.0-...-0a8b275 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

Package daemonhelper is a helper for daemon components tests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type D

type D struct {
	// Env can be used to install files to test config
	testhelper.Env

	// Ctx is the daemon context, can be used to retrieve bus, data...
	Ctx context.Context

	// Cancel is the daemon cancel function
	Cancel context.CancelFunc

	DrainDuration time.Duration
}

D struct holds Env, context to test daemon

func Setup

func Setup(t *testing.T, env *testhelper.Env) *D

Setup starts pubsub, data for daemon sub component tests

Jump to

Keyboard shortcuts

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