testing

package
v0.17.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestClientCreator

func TestClientCreator(value interface{}) storage.CreateFn

TestClientCreator returns a pubsub.CreateFn used to construct the test Storage client.

Types

type TestBucketData

type TestBucketData struct {
	Notifications      map[string]*Notification
	AddNotificationID  string
	NotificationsErr   error
	AddNotificationErr error
	DeleteErr          error
	Attrs              *BucketAttrs
	AttrsError         error
}

TestBucketData is the data used to configure the test Bucket.

type TestClientData

type TestClientData struct {
	CreateClientErr       error
	CreateSubscriptionErr error
	CreateTopicErr        error
	CloseErr              error
	BucketData            TestBucketData
}

TestClientData is the data used to configure the test Storage client.

Jump to

Keyboard shortcuts

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