testing

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestClientCreator

func TestClientCreator(value interface{}) gpubsub.CreateFn

TestClientCreator returns a pubsub.CreateFn used to construct the test Pub/Sub client.

Types

type TestClientData

type TestClientData struct {
	CreateClientErr       error
	CreateSubscriptionErr error
	CreateTopicErr        error
	CloseErr              error
	TopicData             TestTopicData
	SubscriptionData      TestSubscriptionData
	HandleData            testiam.TestHandleData
}

TestClientData is the data used to configure the test Pub/Sub client.

type TestSubscriptionData

type TestSubscriptionData struct {
	ExistsErr error
	Exists    bool
	ConfigErr error
	UpdateErr error
	DeleteErr error
}

TestSubscriptionData is the data used to configure the test Subscription.

type TestTopicData

type TestTopicData struct {
	ExistsErr error
	Exists    bool
	DeleteErr error
}

TestTopicData is the data used to configure the test Topic.

Jump to

Keyboard shortcuts

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