testclickhouse

package
v0.61.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(t TestingT) string

Start starts a ClickHouse container for testing. It returns the DSN for connecting to the container. The container is automatically terminated when the test ends.

func StartCluster

func StartCluster(t TestingT) (string, string)

StartCluster starts a ClickHouse cluster for testing. It returns the DSN for connecting to the cluster and the cluster name. The cluster is automatically terminated when the test ends.

Types

type TestingT

type TestingT interface {
	Name() string
	TempDir() string
	FailNow()
	Errorf(format string, args ...interface{})
	Cleanup(f func())
}

TestingT satisfies both *testing.T and *testing.B.

Jump to

Keyboard shortcuts

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