testhelpers

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupPostgreSQLTestContainer

func SetupPostgreSQLTestContainer(ctx context.Context, t *testing.T) (string, nat.Port)

setupPostgreSQLTestContainer initializes and starts the PostgreSQL test container.

Types

type TestRaftHelper added in v0.10.1

type TestRaftHelper struct {
	Node     *raft.Node
	TempDir  string
	NodeID   string
	RaftAddr string
}

TestRaftHelper contains utilities for testing Raft functionality.

func NewTestRaftNode added in v0.10.1

func NewTestRaftNode(t *testing.T) (*TestRaftHelper, error)

NewTestRaftNode creates a Raft node for testing purposes.

func (*TestRaftHelper) Cleanup added in v0.10.1

func (h *TestRaftHelper) Cleanup() error

Cleanup removes temporary files and shuts down the Raft node.

Jump to

Keyboard shortcuts

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