testinfra

package
v0.0.0-...-38eb8b6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTestcontainersLogger

func NewTestcontainersLogger() log.Logger

Types

type ClickhouseClientFunc

type ClickhouseClientFunc func(t *testing.T) (clickhouse.Conn, error)

func NewTestClickhouse

NewTestClickhouse creates a new ClickHouse container with the schema initialized from migration files. Returns a container reference and a function to create test connections. The per-test connection is automatically closed via t.Cleanup.

Mirrors testenv.NewTestClickhouse but lives in testinfra so it can be used by packages (e.g. internal/authz) that cannot import internal/testenv because of circular dependencies.

type PostgresDBCloneFunc

type PostgresDBCloneFunc func(t *testing.T, name string) (*pgxpool.Pool, error)

Jump to

Keyboard shortcuts

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