MCPcopy Create free account
hub / github.com/google/go-cloud / MakeNonexistentTopic

Method MakeNonexistentTopic

pubsub/gcppubsubv2/gcppubsub_test.go:95–97  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

93}
94
95func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.Topic, error) {
96 return openTopic(h.client.Publisher("nonexistent-topic")), nil
97}
98
99func (h *harness) CreateSubscription(ctx context.Context, dt driver.Topic, testName string) (ds driver.Subscription, cleanup func(), err error) {
100 subName := fmt.Sprintf("%s-subscription-%d", sanitize(testName), atomic.AddUint32(&h.numSubs, 1))

Callers

nothing calls this directly

Calls 1

openTopicFunction · 0.70

Tested by

no test coverage detected