testutil

package
v0.0.0-...-7525976 Latest Latest
Warning

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

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

Documentation

Overview

Package testutil provides utilities for testing the TLS package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoTLSClient

func NewGoTLSClient(t *testing.T, serverAddr string, numRequests int, enableHTTP2 bool) (*exec.Cmd, func())

NewGoTLSClient triggers an external go tls client that runs `numRequests` HTTPs requests to `serverAddr`. Returns the command executed and a callback to start sending requests.

func RunServer

func RunServer(t testing.TB, serverPort string) error

RunServer runs a go-httpbin server in a docker container.

Types

This section is empty.

Directories

Path Synopsis
Package main is a simple client for the gotls_server.
Package main is a simple client for the gotls_server.
Package main is a simple client for the gotls_server.
Package main is a simple client for the gotls_server.

Jump to

Keyboard shortcuts

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