test

package
v3.21.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package test contains testing utilities usable by all subpackages of networkserver excluding itself.

Index

Constants

This section is empty.

Variables

View Source
var (
	CacheTTL           = (1 << 6) * test.Delay
	DefaultMACSettings = DefaultConfig.DefaultMACSettings.Parse()
)

Functions

func HandleApplicationUplinkQueueTest

func HandleApplicationUplinkQueueTest(t *testing.T, q ApplicationUplinkQueue, consumerIDs []string)

HandleApplicationUplinkQueueTest runs a ApplicationUplinkQueue test suite on reg.

func HandleDeviceRegistryTest

func HandleDeviceRegistryTest(t *testing.T, reg DeviceRegistry)

HandleDeviceRegistryTest runs a DeviceRegistry test suite on reg.

func HandleDownlinkTaskQueueTest

func HandleDownlinkTaskQueueTest(t *testing.T, q DownlinkTaskQueue, consumerIDs []string)

HandleDownlinkTaskQueueTest runs a DownlinkTaskQueue test suite on reg.

func NewRedisApplicationUplinkQueue

func NewRedisApplicationUplinkQueue(ctx context.Context) (ApplicationUplinkQueue, func())

func NewRedisDeviceRegistry

func NewRedisDeviceRegistry(ctx context.Context) (DeviceRegistry, func())

func NewRedisDownlinkTaskQueue

func NewRedisDownlinkTaskQueue(ctx context.Context) (DownlinkTaskQueue, func())

func NewRedisScheduledDownlinkMatcher added in v3.13.3

func NewRedisScheduledDownlinkMatcher(ctx context.Context) (ScheduledDownlinkMatcher, func())

func NewRedisUplinkDeduplicator

func NewRedisUplinkDeduplicator(ctx context.Context) (UplinkDeduplicator, func())

Types

type TaskPopFuncResponse added in v3.11.0

type TaskPopFuncResponse struct {
	Time  time.Time
	Error error
}

Jump to

Keyboard shortcuts

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