Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps the Redis client and the underlying instance for testing. It provides helper methods for accessing the client, closing the client, and closing the instance.
func NewClient ¶
func NewClient(ctx context.Context, t *testing.T, projectID string, datasetID string) (*Client, error)
NewClient creates a new BigQuery client that connects to an underlying emulator instance for testing.
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents the underlying container that is running the mock redis instance.
func NewInstance ¶
func NewInstance(ctx context.Context, t *testing.T, project string, dataset string) (*Instance, error)
NewInstance creates a new BigQuery Emulator container. It will exponentially backoff until the container is ready to accept connections so that you can handle throttling within CI environments
Click to show internal directories.
Click to hide internal directories.