exchangetest

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package exchangetest provides utilities for exchange testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeEmptyResponse

func MakeEmptyResponse(url string) *exchange.Response

MakeEmptyResponse returns a new exchange.Response with a new GET request to url and an empty response with the status code 200 (OK).

MakeEmptyResponse panics on error for ease of use in testing.

func MakeResponse

func MakeResponse(url, respText string) *exchange.Response

MakeResponse returns a new exchange.Response with a new GET request to url. respText is the entire HTTP response.

MakeResponse panics on error for ease of use in testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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