tests

package
v0.0.0-...-071f0a0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2023 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configurer

type Configurer interface {
	// UnmarshalKey takes a single key and unmarshal it into a Struct.
	UnmarshalKey(name string, out any) error
	// Has checks if config section exists.
	Has(name string) bool
}

type TemporalInterceptorPlugin

type TemporalInterceptorPlugin struct {
	// contains filtered or unexported fields
}

func (*TemporalInterceptorPlugin) Init

func (*TemporalInterceptorPlugin) Name

func (pt *TemporalInterceptorPlugin) Name() string

func (*TemporalInterceptorPlugin) Serve

func (pt *TemporalInterceptorPlugin) Serve() chan error

func (*TemporalInterceptorPlugin) Stop

func (*TemporalInterceptorPlugin) WorkerInterceptor

type TestServer

type TestServer struct {
	Client temporalClient.Client
}

func NewTestServer

func NewTestServer(t *testing.T, stopCh chan struct{}, wg *sync.WaitGroup) *TestServer

func NewTestServerLA

func NewTestServerLA(t *testing.T, stopCh chan struct{}, wg *sync.WaitGroup) *TestServer

func NewTestServerTLS

func NewTestServerTLS(t *testing.T, stopCh chan struct{}, wg *sync.WaitGroup, configName string) *TestServer

func NewTestServerWithInterceptor

func NewTestServerWithInterceptor(t *testing.T, stopCh chan struct{}, wg *sync.WaitGroup) *TestServer

func NewTestServerWithMetrics

func NewTestServerWithMetrics(t *testing.T, stopCh chan struct{}, cfg Configurer, wg *sync.WaitGroup) *TestServer

func NewTestServerWithOtelInterceptor

func NewTestServerWithOtelInterceptor(t *testing.T, stopCh chan struct{}, wg *sync.WaitGroup) *TestServer

func (*TestServer) AssertContainsEvent

func (s *TestServer) AssertContainsEvent(client temporalClient.Client, t *testing.T, w temporalClient.WorkflowRun, assert func(*history.HistoryEvent) bool)

func (*TestServer) AssertNotContainsEvent

func (s *TestServer) AssertNotContainsEvent(client temporalClient.Client, t *testing.T, w temporalClient.WorkflowRun, assert func(*history.HistoryEvent) bool)

Jump to

Keyboard shortcuts

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