test

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const HTTP_GW_Host = "0.0.0.0"
View Source
const HTTP_GW_Port = 7000
View Source
const TestTimeout = 20 * time.Second

Variables

This section is empty.

Functions

func CleanUpDeviceRepresentation

func CleanUpDeviceRepresentation(v interface{}) interface{}

func GetDeviceRepresentation

func GetDeviceRepresentation(deviceID string, deviceName string) interface{}

func GetTestRebootUri

func GetTestRebootUri(deviceID string, t *testing.T) string

func HTTPDo

func HTTPDo(t *testing.T, req *http.Request) *http.Response

func MakeConfig

func MakeConfig(t *testing.T) service.Config

func New

func New(t *testing.T, cfg service.Config) func()

func NewRequest

func NewRequest(method, url string, body io.Reader) *requestBuilder

func SetUp

func SetUp(t *testing.T) (TearDown func())
func SortLinks(s []interface{}) []interface{}

Types

type SortLinksByHref

type SortLinksByHref []interface{}

func (SortLinksByHref) Len

func (a SortLinksByHref) Len() int

func (SortLinksByHref) Less

func (a SortLinksByHref) Less(i, j int) bool

func (SortLinksByHref) Swap

func (a SortLinksByHref) Swap(i, j int)

Jump to

Keyboard shortcuts

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