iotdevicetest

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package iotdevicetest provides utilities for iotdevice testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRandomID

func GenerateRandomID() string

func NewDevice

func NewDevice(t *testing.T, c *iotservice.Client) *iotservice.Device

NewDevice creates a new test device and deletes it when the tests are done.

func NewModule

func NewModule(t *testing.T, c *iotservice.Client, deviceID string) *iotservice.Module

NewModule creates a new test module, sets up SAS authentication and deletes it when the tests are done.

func NewServiceClient

func NewServiceClient(t *testing.T) *iotservice.Client

NewServiceClient creates a service client based on the `TEST_IOTHUB_SERVICE_CONNECTION_STRING` connection string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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