test

package
v3.10.4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2020 License: Apache-2.0 Imports: 14 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 << 5) * 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(t testing.TB) (ApplicationUplinkQueue, func())

func NewRedisDeviceRegistry

func NewRedisDeviceRegistry(t testing.TB) (DeviceRegistry, func())

func NewRedisDownlinkTaskQueue

func NewRedisDownlinkTaskQueue(t testing.TB) (DownlinkTaskQueue, func())

func NewRedisUplinkDeduplicator

func NewRedisUplinkDeduplicator(t testing.TB) (UplinkDeduplicator, func())

Types

This section is empty.

Jump to

Keyboard shortcuts

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