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

Function deleteTopic

pubsub/gcppubsubv2/gcppubsub_test.go:89–93  ·  view source on GitHub ↗
(ctx context.Context, client *raw.Client, topicName string)

Source from the content-addressed store, hash-verified

87}
88
89func deleteTopic(ctx context.Context, client *raw.Client, topicName string) {
90 _ = client.TopicAdminClient.DeleteTopic(ctx, &pubsubpb.DeleteTopicRequest{
91 Topic: topicPath(topicName),
92 })
93}
94
95func (h *harness) MakeNonexistentTopic(ctx context.Context) (driver.Topic, error) {
96 return openTopic(h.client.Publisher("nonexistent-topic")), nil

Callers 1

createTopicFunction · 0.70

Calls 1

topicPathFunction · 0.85

Tested by

no test coverage detected