test

package
v3.11.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 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 = DefaultConfig.DefaultMACSettings.Parse()
)

Functions

func HandleApplicationUplinkQueueTest

func HandleApplicationUplinkQueueTest(t *testing.T, q ApplicationUplinkQueue)

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)

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 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