test

package
v3.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 15 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 = test.Must(DefaultConfig.DefaultMACSettings.Parse())
)

Functions

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