etcd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNoopTB

func NewNoopTB(name string) (testutil.TB, func())

NewNoopTB creates a new no-op testutil.TB implementation. Returns the TB and a cleanup function that should be called when done.

func NewSilentTB

func NewSilentTB(tb testutil.TB) testutil.TB

NewSilentTB creates a new silent testutil.TB wrapper.

Types

type LazyCluster

type LazyCluster = etcdlazy.LazyCluster

LazyCluster is an alias for etcdlazy.LazyCluster.

func NewLazyCluster

func NewLazyCluster() LazyCluster

NewLazyCluster returns a new test cluster handler that gets created on the first call to GetEndpoints() or GetTransport(). This implementation uses a no-op TB to skip logging.

func NewLazyClusterWithConfig

func NewLazyClusterWithConfig(cfg etcdintegration.ClusterConfig) LazyCluster

NewLazyClusterWithConfig returns a new test cluster handler that gets created on the first call to GetEndpoints() or GetTransport(). This implementation uses a no-op TB to skip logging.

type NoopTB

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

NoopTB is a testutil.TB implementation that discards all logs.

func (*NoopTB) Cleanup

func (t *NoopTB) Cleanup(f func())

func (*NoopTB) Error

func (t *NoopTB) Error(args ...any)

func (*NoopTB) Errorf

func (t *NoopTB) Errorf(format string, args ...any)

func (*NoopTB) Fail

func (t *NoopTB) Fail()

func (*NoopTB) FailNow

func (t *NoopTB) FailNow()

func (*NoopTB) Failed

func (t *NoopTB) Failed() bool

func (*NoopTB) Fatal

func (t *NoopTB) Fatal(args ...any)

func (*NoopTB) Fatalf

func (t *NoopTB) Fatalf(format string, args ...any)

func (*NoopTB) Helper

func (t *NoopTB) Helper()

func (*NoopTB) Log

func (t *NoopTB) Log(...any)

func (*NoopTB) Logf

func (t *NoopTB) Logf(string, ...any)

func (*NoopTB) Name

func (t *NoopTB) Name() string

func (*NoopTB) Skip

func (t *NoopTB) Skip(...any)

func (*NoopTB) TempDir

func (t *NoopTB) TempDir() string

type SilentTB

type SilentTB struct {
	testutil.TB
}

SilentTB wraps a testutil.TB and discards all logs.

func (*SilentTB) Log

func (s *SilentTB) Log(args ...any)

func (*SilentTB) Logf

func (s *SilentTB) Logf(format string, args ...any)

Jump to

Keyboard shortcuts

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