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

Method CreateTopic

pubsub/gcppubsubv2/gcppubsub_test.go:57–60  ·  view source on GitHub ↗
(ctx context.Context, testName string)

Source from the content-addressed store, hash-verified

55}
56
57func (h *harness) CreateTopic(ctx context.Context, testName string) (dt driver.Topic, cleanup func(), err error) {
58 topicName := fmt.Sprintf("%s-topic-%d", sanitize(testName), atomic.AddUint32(&h.numTopics, 1))
59 return createTopic(ctx, h.client, topicName)
60}
61
62func topicPath(topicName string) string {
63 return fmt.Sprintf("projects/%s/topics/%s", projectID, topicName)

Callers

nothing calls this directly

Calls 2

sanitizeFunction · 0.70
createTopicFunction · 0.70

Tested by

no test coverage detected