Documentation ¶
Overview ¶
Package testutil implements utilities for testing. This package is not used by production code.
Index ¶
- func NewProber(t testing.TB, u string) scheme.Prober
- func NewStore(t testing.TB) *store.Store
- func NewStoreWithConsole(t testing.TB, w io.Writer) *store.Store
- func NewStoreWithLog(t testing.TB) *store.Store
- func RunAlert(ctx context.Context, a scheme.Alerter, rec api.Record) []api.Record
- func RunProbe(ctx context.Context, p scheme.Prober) []api.Record
- func StartTestServer(t testing.TB) *httptest.Server
- type Certificate
- type DummyReporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStoreWithConsole ¶ added in v0.11.0
Types ¶
type Certificate ¶
type Certificate struct { PrivateKey *rsa.PrivateKey CertFile string KeyFile string Certificate *x509.Certificate }
func NewCertificate ¶
func NewCertificate(t *testing.T) Certificate
func (Certificate) Client ¶
func (c Certificate) Client() *http.Client
type DummyReporter ¶
func (*DummyReporter) AssertActives ¶ added in v0.12.0
func (r *DummyReporter) AssertActives(t *testing.T, expects ...string)
func (*DummyReporter) DeactivateTarget ¶ added in v0.12.0
func (r *DummyReporter) DeactivateTarget(source *url.URL, targets ...*url.URL)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.