taskqtest

package module
v4.0.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: BSD-2-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestBatchConsumer

func TestBatchConsumer(
	t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig, messageSize int,
)

func TestCallOnce

func TestCallOnce(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestConsumer

func TestConsumer(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestDelay

func TestDelay(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestErrorDelay

func TestErrorDelay(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestFallback

func TestFallback(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestInvalidCredentials

func TestInvalidCredentials(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestLen

func TestLen(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestNamedJob

func TestNamedJob(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestRateLimit

func TestRateLimit(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestRetry

func TestRetry(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

func TestUnknownTask

func TestUnknownTask(t *testing.T, factory taskq.Factory, opt *taskq.QueueConfig)

Types

type RateLimitError

type RateLimitError string

func (RateLimitError) Delay

func (RateLimitError) Delay() time.Duration

func (RateLimitError) Error

func (e RateLimitError) Error() string

Jump to

Keyboard shortcuts

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