adaptertest

package
v0.0.0-...-793517a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIV2Server

func GetAPIV2Server(t *testing.T, supportDiscovery bool) *httptest.Server

GetAPIV2Server returns an httptest Server useful for testing APIV2 type adapters. Instead of having to write your own you can simply get this

func GetURL

func GetURL(t *testing.T, s *httptest.Server) *url.URL

GetURL allows you to get the URL of the server you've created using either the above GetAPIV2Server or your own httptest Server.

Types

This section is empty.

Jump to

Keyboard shortcuts

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