package betesting

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

Index

Functions

func Close

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

func NewDefaultTmpBackend

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

func NewTmpBackend

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

NewTmpBackend creates a backend implementation for testing.

func NewTmpBackendFromCfg

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

Source Files

betesting.go

Version
v3.6.0 (latest)
Published
May 15, 2025
Platform
linux/amd64
Imports
7 packages
Last checked
19 minutes ago

Tools for package owners.