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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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