cloudtest

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cloudtest provides utilities for testing, e.g. cloud service tests using mock http Transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoggingClient

func LoggingClient(client *http.Client) (*http.Client, error)

LoggingClient is an HTTP client that also logs all requests and responses.

func NewChannelClient

func NewChannelClient(c <-chan *http.Response) *http.Client

NewChannelClient is an HTTP client that ignores requests and returns responses provided by a channel.

func NewLoggingClient

func NewLoggingClient() *http.Client

NewLoggingClient returns an HTTP client that also logs all requests and responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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