teststarrocks

package
v0.80.2 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StarRocksVersion is the StarRocks version used for testing
	StarRocksVersion = "4.0.3"
	// StarRocksImage is the Docker image for StarRocks all-in-one container
	StarRocksImage = "starrocks/allin1-ubuntu:" + StarRocksVersion
)

Variables

This section is empty.

Functions

func StartWithData

func StartWithData(t TestingT) string

StartWithData starts a StarRocks container and initializes it with test tables. Returns DSN for connecting to the container.

Types

type StarRocksInfo

type StarRocksInfo struct {
	DSN        string // MySQL protocol DSN (port 9030)
	FEHTTPAddr string // FE HTTP address for Stream Load (port 8030)
	BEHTTPAddr string // BE HTTP address for Stream Load redirect (port 8040)
}

StarRocksInfo contains connection info for a StarRocks container

func Start

func Start(t TestingT) StarRocksInfo

Start starts a StarRocks all-in-one container for testing. It returns connection info for the container. The container is automatically terminated when the test ends.

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