httpdriver

package
v1.28.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package httpdriver provides a test double of the browser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, t *testing.T, o Option) *client

New returns a client to simulate browser access.

func Zero

func Zero(t *testing.T) *zeroClient

Zero returns a client which call is not expected.

Types

type Option added in v1.20.0

type Option struct {
	TLSConfig    *tls.Config
	BodyContains string
}

Jump to

Keyboard shortcuts

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