test

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const PersistentAlias = "getalias"
View Source
const PersistentCollection = "snp"
View Source
const PersistentWorkspace = "persistent"

Variables

This section is empty.

Functions

func Client

func Client(t *testing.T) *rockset.RockClient

func Context

func Context() context.Context

Context is helper function to create a context with a zerolog logger

func ContextWithLevel

func ContextWithLevel(lvl zerolog.Level) context.Context

func DebugClient

func DebugClient(t *testing.T) *rockset.RockClient

func Description

func Description() string

func RandomName

func RandomName(prefix string) string

func RandomString

func RandomString(length int) string

RandomString creates a random string with a specific length

func SkipUnlessDocker

func SkipUnlessDocker(t *testing.T)

func SkipUnlessEnvSet

func SkipUnlessEnvSet(t *testing.T, envName string) string

func SkipUnlessIntegrationTest

func SkipUnlessIntegrationTest(t *testing.T)

SkipUnlessIntegrationTest is helper function to skip unless ROCKSET_APIKEY is set

Types

type Retrier

type Retrier struct{}

Retrier is used for testing

func (Retrier) Retry

func (t Retrier) Retry(ctx context.Context, retryFn retry.Func) error

func (Retrier) RetryWithCheck

func (t Retrier) RetryWithCheck(ctx context.Context, checkFunc retry.CheckFn) error

Jump to

Keyboard shortcuts

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