MCPcopy Index your code
hub / github.com/bytebase/bytebase / TestSubscription

Function TestSubscription

backend/tests/subscription_test.go:12–25  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestSubscription(t *testing.T) {
13 a := require.New(t)
14 ctx := context.Background()
15 ctl := &controller{}
16 ctx, err := ctl.StartServerWithExternalPg(ctx)
17 a.NoError(err)
18 defer ctl.Close(ctx)
19
20 err = ctl.removeLicense(ctx)
21 a.NoError(err)
22 subscription, err := ctl.getSubscription(ctx)
23 a.NoError(err)
24 a.Equal(v1pb.PlanType_FREE, subscription.Plan)
25}

Callers

nothing calls this directly

Calls 5

CloseMethod · 0.95
removeLicenseMethod · 0.95
getSubscriptionMethod · 0.95
EqualMethod · 0.65

Tested by

no test coverage detected