test

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package test - various support components used in unit-testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UnitTestCallbackCollector

type UnitTestCallbackCollector interface {
	// OnFatal called when background task need to report fatal error
	OnFatal(reporter string, err error, timestamp time.Time)

	// OnComplete called when task execution completes
	OnComplete(ctx context.Context, instanceID string, err error, timestamp time.Time)

	// NewTaskExecutor factory function for defining new task executors
	NewTaskExecutor(
		parentCtx context.Context,
		taskQueue string,
		workerCount int,
		requestBufferLen int,
		support task.ExecutorSupport,
		processors map[string]models.TaskExecutionProcessor,
	) (task.Executor, error)

	// NewRedisIPCMsgReceiver factory function for defining new Redis based IPC message receivers
	NewRedisIPCMsgReceiver(
		ctx context.Context, queueName string, redis goutilsRedis.Client, reader string,
	) (common.IPCMessageReceive, error)

	// NewRedisIPCMsgSender factory function for defining new Redis based IPC message senders
	NewRedisIPCMsgSender(
		ctx context.Context, queueName string, redis goutilsRedis.Client, sender string,
	) (common.IPCMessageSend, error)
}

UnitTestCallbackCollector unit-testing interface for collecting callbacks

Jump to

Keyboard shortcuts

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