(ctx context.Context, dt driver.Topic, testName string)
| 97 | } |
| 98 | |
| 99 | func (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)) |
| 101 | return createSubscription(ctx, h.client, dt, subName) |
| 102 | } |
| 103 | |
| 104 | func createSubscription(ctx context.Context, client *raw.Client, dt driver.Topic, subName string) (ds driver.Subscription, cleanup func(), err error) { |
| 105 | t := dt.(*topic) |
nothing calls this directly
no test coverage detected