testutil

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.9.1

func CopyFile(t testing.TB, source string) (dest string)

func NewProbe

func NewProbe(t testing.TB, u string) probe.Probe

func NewStore

func NewStore(t testing.TB) *store.Store

func RunCheck

func RunCheck(ctx context.Context, p probe.Probe) []api.Record

func StartTestServer added in v0.5.0

func StartTestServer(t testing.TB) *httptest.Server

Types

type Certificate added in v0.9.0

type Certificate struct {
	PrivateKey  *rsa.PrivateKey
	CertFile    string
	KeyFile     string
	Certificate *x509.Certificate
}

func NewCertificate added in v0.9.0

func NewCertificate(t *testing.T) Certificate

func (Certificate) Client added in v0.9.0

func (c Certificate) Client() *http.Client

type DummyReporter

type DummyReporter struct {
	sync.Mutex

	Records []api.Record
}

func (*DummyReporter) Report

func (r *DummyReporter) Report(rec api.Record)

Jump to

Keyboard shortcuts

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