testutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Leader

func Leader(ctx context.Context, tb testing.TB, factory Factory)

Leader tests the ability of a lease.Provider implementation to support the lease.Leader behavior.

func Provider

func Provider(ctx context.Context, tb testing.TB, factory Factory)

Provider tests the basic behavior of a lease.Provider implementation.

Types

type Factory

type Factory func(lease.Clock) (lease.Provider, error)

Factory creates a lease.Provider using the given lease.Clock.

Jump to

Keyboard shortcuts

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