http

package
v0.0.0-...-20bfd0a Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package http contains HTTP integration test helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlwaysThen

func AlwaysThen(then time.Time) client.EventDefaulter

func ClientDirect

func ClientDirect(t *testing.T, tc DirectTapTest, copts ...client.Option)

func ClientLoopback

func ClientLoopback(t *testing.T, tc TapTest, copts ...client.Option)

func ClientMiddleware

func ClientMiddleware(t *testing.T, tc TapTest, copts ...client.Option)

func ClientReceiver

func ClientReceiver(t *testing.T, tc ReceiverTapTest, copts ...client.Option)

func NewTap

func NewTap() *tapHandler

Types

type DirectTapTest

type DirectTapTest struct {
	// contains filtered or unexported fields
}

type DirectTapTestCases

type DirectTapTestCases map[string]DirectTapTest

type ReceiverTapTest

type ReceiverTapTest struct {
	// contains filtered or unexported fields
}

type ReceiverTapTestCases

type ReceiverTapTestCases map[string]ReceiverTapTest

type TapTest

type TapTest struct {
	// contains filtered or unexported fields
}

type TapTestCases

type TapTestCases map[string]TapTest

type TapValidation

type TapValidation struct {
	Method        string
	URI           string
	Header        http.Header
	Body          string
	BodyContains  []string
	Status        string
	ContentLength int64
}

Jump to

Keyboard shortcuts

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