package betesting

import "go.etcd.io/etcd/server/v3/storage/backend/testing"

Index

Functions

func Close

func Close(tb testing.TB, b backend.Backend)

func NewDefaultTmpBackend

func NewDefaultTmpBackend(tb testing.TB) (backend.Backend, string)

func NewTmpBackend

func NewTmpBackend(tb testing.TB, batchInterval time.Duration, batchLimit int) (backend.Backend, string)

NewTmpBackend creates a backend implementation for testing.

func NewTmpBackendFromCfg

func NewTmpBackendFromCfg(tb testing.TB, bcfg backend.BackendConfig) (backend.Backend, string)

Source Files

betesting.go

Version
v3.7.1 (latest)
Published
Jul 23, 2026
Platform
linux/amd64
Imports
7 packages
Last checked
4 hours ago

Tools for package owners.